Commit 99e12005 authored by Ghislain MARY's avatar Ghislain MARY

Use correct macro to detect Android build.

parent fe7c9c5b
......@@ -53,7 +53,7 @@
#ifdef _WIN32
extern void OutputDebugStringPrintf(FILE *file, const char *fmt, ...);
#define fprintf(file, fmt, ...) OutputDebugStringPrintf(file, fmt, ##__VA_ARGS__)
#elif defined(ANDROID)
#elif defined(__ANDROID__)
extern void AndroidPrintf(FILE *file, const char *fmt, ...);
#define fprintf(file, fmt, ...) AndroidPrintf(file, fmt, ##__VA_ARGS__)
#else
......
......@@ -88,7 +88,7 @@
#ifdef _WIN32
extern void OutputDebugStringPrintf(FILE *file, const char *fmt, ...);
#define fprintf(file, fmt, ...) OutputDebugStringPrintf(file, fmt, ##__VA_ARGS__)
#elif defined(ANDROID)
#elif defined(__ANDROID__)
extern void AndroidPrintf(FILE *file, const char *fmt, ...);
#define fprintf(file, fmt, ...) AndroidPrintf(file, fmt, ##__VA_ARGS__)
#else
......
......@@ -87,7 +87,7 @@ void OutputDebugStringPrintf(FILE *file, const char *fmt, ...) {
}
va_end(args);
}
#elif defined(ANDROID)
#elif defined(__ANDROID__)
#include <android/log.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment