Mercurial > almixer_isolated
diff Isolated/SoundDecoder_Internal.h @ 69:be97ae4f30c0
Changed use of ANDROID_NDK to __ANDROID__ since it seems to be standard.
Running this dumps the #defines for me:
/usr/local/bin/android-ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/arm-linux-androideabi-cpp -dM /dev/null
(Instructions found from http://annoyingtechnicaldetails.wordpress.com/2012/02/01/which-macros-does-the-android-ndk-gcc-define/)
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Wed, 20 Jun 2012 10:32:41 -0700 |
parents | 71b465ff0622 |
children |
line wrap: on
line diff
--- a/Isolated/SoundDecoder_Internal.h Wed Jun 20 10:30:47 2012 -0700 +++ b/Isolated/SoundDecoder_Internal.h Wed Jun 20 10:32:41 2012 -0700 @@ -47,7 +47,7 @@ #define ERR_PREVIOUS_SAMPLE_ERROR "Cannot operate on sample due to previous error" #define ERR_ALREADY_AT_EOF_ERROR "Cannot operate on sample because already at EOF" -#ifdef ANDROID_NDK +#ifdef __ANDROID__ /* This macro crashes when a format string is used. * Provide a real function instead.