diff --git a/ndk/platforms/android-4/include/GLES/glplatform.h b/ndk/platforms/android-4/include/GLES/glplatform.h index 0924caeaf..a38ea4cb2 100644 --- a/ndk/platforms/android-4/include/GLES/glplatform.h +++ b/ndk/platforms/android-4/include/GLES/glplatform.h @@ -24,7 +24,7 @@ #define GL_API KHRONOS_APICALL #endif -#if defined(ANDROID) +#if defined(__ANDROID__) #define GL_APIENTRY KHRONOS_APIENTRY diff --git a/ndk/platforms/android-4/include/KHR/khrplatform.h b/ndk/platforms/android-4/include/KHR/khrplatform.h index 1660bd7fe..75bc551bf 100644 --- a/ndk/platforms/android-4/include/KHR/khrplatform.h +++ b/ndk/platforms/android-4/include/KHR/khrplatform.h @@ -26,7 +26,7 @@ /* Platform-specific types and definitions. * $Revision: 7244 $ on $Date: 2009-01-20 17:06:59 -0800 (Tue, 20 Jan 2009) $ - * + * * Adopters may modify this file to suit their platform. Adopters are * encouraged to submit platform specific modifications to the Khronos * group so that they can be included in future versions of this file. @@ -37,13 +37,13 @@ * A predefined template which fills in some of the bug fields can be * reached using http://tinyurl.com/khrplatform-h-bugreport, but you * must create a Bugzilla login first. - * + * * * See the Implementer's Guidelines for information about where this file * should be located on your system. * http://www.khronos.org/registry/implementers_guide.pdf * - * + * * This file should be included as * #include * by the Khronos API header file that uses its types and defines. @@ -70,7 +70,7 @@ * * KHRONOS_SUPPORT_INT64 is 1 if 64 bit integers are supported; otherwise 0. * KHRONOS_SUPPORT_FLOAT is 1 if floats are supported; otherwise 0. - * + * * * Macros defined in this file: * KHRONOS_APICALL @@ -91,7 +91,7 @@ # define KHRONOS_APICALL __declspec(dllimport) #elif defined (__SYMBIAN32__) # define KHRONOS_APICALL IMPORT_C -#elif defined(ANDROID) +#elif defined(__ANDROID__) # define KHRONOS_APICALL __attribute__((visibility("default"))) #else # define KHRONOS_APICALL @@ -228,11 +228,11 @@ typedef float khronos_float_t; #if KHRONOS_SUPPORT_INT64 /* Time types * - * These types can be used to represent a time interval in nanoseconds or - * an absolute Unadjusted System Time. Unadjusted System Time is the number - * of nanoseconds since some arbitrary system event (e.g. since the last - * time the system booted). The Unadjusted System Time is an unsigned - * 64 bit value that wraps back to 0 every 584 years. Time intervals + * These types can be used to represent a time interval in nanoseconds or + * an absolute Unadjusted System Time. Unadjusted System Time is the number + * of nanoseconds since some arbitrary system event (e.g. since the last + * time the system booted). The Unadjusted System Time is an unsigned + * 64 bit value that wraps back to 0 every 584 years. Time intervals * may be either signed or unsigned. */ typedef khronos_uint64_t khronos_utime_nanoseconds_t; diff --git a/ndk/platforms/android-9/include/EGL/eglplatform.h b/ndk/platforms/android-9/include/EGL/eglplatform.h index 25d7697ee..e6c250d9a 100644 --- a/ndk/platforms/android-9/include/EGL/eglplatform.h +++ b/ndk/platforms/android-9/include/EGL/eglplatform.h @@ -78,7 +78,7 @@ typedef int EGLNativeDisplayType; typedef void *EGLNativeWindowType; typedef void *EGLNativePixmapType; -#elif defined(__unix__) && !defined(ANDROID) +#elif defined(__unix__) && !defined(__ANDROID__) /* X11 (tentative) */ #include @@ -89,7 +89,7 @@ typedef Pixmap EGLNativePixmapType; typedef Window EGLNativeWindowType; -#elif defined(ANDROID) +#elif defined(__ANDROID__) #include