am cc5809bf: Merge "ndk: Use __ANDROID__ instead of ANDROID." into gingerbread
* commit 'cc5809bf2fdae2ea7b5d84b21875cd2220c66105': ndk: Use __ANDROID__ instead of ANDROID.
This commit is contained in:
committed by
Android Git Automerger
commit
f7b070255f
@@ -24,7 +24,7 @@
|
|||||||
#define GL_API KHRONOS_APICALL
|
#define GL_API KHRONOS_APICALL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(ANDROID)
|
#if defined(__ANDROID__)
|
||||||
|
|
||||||
#define GL_APIENTRY KHRONOS_APIENTRY
|
#define GL_APIENTRY KHRONOS_APIENTRY
|
||||||
|
|
||||||
|
|||||||
@@ -91,7 +91,7 @@
|
|||||||
# define KHRONOS_APICALL __declspec(dllimport)
|
# define KHRONOS_APICALL __declspec(dllimport)
|
||||||
#elif defined (__SYMBIAN32__)
|
#elif defined (__SYMBIAN32__)
|
||||||
# define KHRONOS_APICALL IMPORT_C
|
# define KHRONOS_APICALL IMPORT_C
|
||||||
#elif defined(ANDROID)
|
#elif defined(__ANDROID__)
|
||||||
# define KHRONOS_APICALL __attribute__((visibility("default")))
|
# define KHRONOS_APICALL __attribute__((visibility("default")))
|
||||||
#else
|
#else
|
||||||
# define KHRONOS_APICALL
|
# define KHRONOS_APICALL
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ typedef int EGLNativeDisplayType;
|
|||||||
typedef void *EGLNativeWindowType;
|
typedef void *EGLNativeWindowType;
|
||||||
typedef void *EGLNativePixmapType;
|
typedef void *EGLNativePixmapType;
|
||||||
|
|
||||||
#elif defined(__unix__) && !defined(ANDROID)
|
#elif defined(__unix__) && !defined(__ANDROID__)
|
||||||
|
|
||||||
/* X11 (tentative) */
|
/* X11 (tentative) */
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
@@ -89,7 +89,7 @@ typedef Pixmap EGLNativePixmapType;
|
|||||||
typedef Window EGLNativeWindowType;
|
typedef Window EGLNativeWindowType;
|
||||||
|
|
||||||
|
|
||||||
#elif defined(ANDROID)
|
#elif defined(__ANDROID__)
|
||||||
|
|
||||||
#include <android/native_window.h>
|
#include <android/native_window.h>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user