comparison ALmixer.c @ 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 8063b19bd40e
children 32757e494675
comparison
equal deleted inserted replaced
68:492239f6ffc9 69:be97ae4f30c0
60 * on Sound_Quit. This might actually create some leaks for me in certain 60 * on Sound_Quit. This might actually create some leaks for me in certain
61 * usage patterns. To be safe, I should do the same. 61 * usage patterns. To be safe, I should do the same.
62 */ 62 */
63 #include "LinkedList.h" 63 #include "LinkedList.h"
64 64
65 #ifdef ANDROID_NDK 65 #ifdef __ANDROID__
66 #undef fprintf 66 #undef fprintf
67 #include <android/log.h> 67 #include <android/log.h>
68 #define fprintf(stderr, ...) __android_log_print(ANDROID_LOG_INFO, "ALmixer", __VA_ARGS__) 68 #define fprintf(stderr, ...) __android_log_print(ANDROID_LOG_INFO, "ALmixer", __VA_ARGS__)
69 #endif 69 #endif
70 70