issue #379, fix a bug caused by airplay port integration, which makes android port unable to load resources by zlib.

This commit is contained in:
walzer 2011-03-26 14:09:42 +08:00
parent 3029b66fbc
commit f568ad8487
3 changed files with 19 additions and 15 deletions

View File

@ -119,23 +119,23 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/ \
$(LOCAL_PATH)/platform/third_party/android/skia/xml
#it is used for ndk-r4
# LOCAL_LDLIBS := -L$(LOCAL_PATH)/platform/third_party/android/libraries \
# -lGLESv1_CM -llog -lz \
# -lpng \
# -lxml2 \
# -ljpeg \
# -lskia
# it is used for ndk-r5
# because the new Windows toolchain doesn't support Cygwin's drive
# mapping (i.e /cygdrive/c/ instead of C:/)
LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/platform/third_party/android/libraries) \
LOCAL_LDLIBS := -L$(LOCAL_PATH)/platform/third_party/android/libraries \
-lGLESv1_CM -llog -lz \
-lpng \
-lxml2 \
-ljpeg \
-lskia
# it is used for ndk-r5
# because the new Windows toolchain doesn't support Cygwin's drive
# mapping (i.e /cygdrive/c/ instead of C:/)
# LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/platform/third_party/android/libraries) \
# -lGLESv1_CM -llog -lz \
# -lpng \
# -lxml2 \
# -ljpeg \
# -lskia
# define the macro to compile through support/zip_support/ioapi.c
LOCAL_CFLAGS := -DUSE_FILE32API

View File

@ -22,8 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#ifndef __CC_CONFIG_H_YANGWS_20100110__
#define __CC_CONFIG_H_YANGWS_20100110__
#ifndef __CC_PLATFORM_CONFIG_H__
#define __CC_PLATFORM_CONFIG_H__
/**
@file
@ -172,8 +172,10 @@ There are config below:
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
#endif // CC_PLATFORM_WIN32
#if (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
#error cofnig
#endif
#endif // __CC_CONFIG_H_YANGWS_20100110__
#endif // CC_PLATFORM_MAC
#endif // __CC_PLATFORM_CONFIG_H__

View File

@ -21,6 +21,8 @@
#ifndef _ZLIBIOAPI64_H
#define _ZLIBIOAPI64_H
#include "CCPlatformConfig.h"
#if (!defined(_WIN32)) && (!defined(WIN32))
// Linux needs this to support file operation on files larger then 4+GB