egl/eglinterface/include/khrplatform.h
branchRCL_3
changeset 20 25ffed67c7ef
parent 19 bbf46f59e123
equal deleted inserted replaced
19:bbf46f59e123 20:25ffed67c7ef
    92 
    92 
    93 #if defined(AEE_SIMULATOR)
    93 #if defined(AEE_SIMULATOR)
    94 #define __KHR_EXPORTS
    94 #define __KHR_EXPORTS
    95 #endif
    95 #endif
    96 
    96 
    97 #if defined(_WIN32) || defined(__VC32__) || defined(__MWERKS__) || defined(__CW32__)         /* Win32 */
    97 #   if defined(_WIN32) || defined(__VC32__) || defined(__MWERKS__) || defined(__CW32__)         /* Win32 */
    98 #   ifdef __KHR_EXPORTS
    98 #   ifdef __KHR_EXPORTS
    99 #       define KHRONOS_APICALL __declspec(dllexport)
    99 #       define KHRONOS_APICALL __declspec(dllexport)
   100 #   else
   100 #   else
   101 #       define KHRONOS_APICALL __declspec(dllexport)
   101 #       define KHRONOS_APICALL __declspec(dllexport)
   102 #   endif
   102 #   endif
   103 #else
   103 #else
   104 #   if defined (__ARMCC_VERSION)
   104 #   if defined (__ARMCC_2_2__)
   105 #       if (__ARMCC_VERSION <= 310000) || (__ARMCC_VERSION >= 400000)
   105 #   	ifdef __KHR_EXPORTS
   106 #          ifdef __KHR_EXPORTS
   106 #	    	define KHRONOS_APICALL __declspec(dllexport)
   107 #            define KHRONOS_APICALL __declspec(dllexport)
   107 #   	else
   108 #          else
   108 #	    	define KHRONOS_APICALL __declspec(dllimport)
   109 #            define KHRONOS_APICALL __declspec(dllimport)
   109 #   	endif
   110 #          endif
   110 #   elif (__ARMCC_VERSION >= 310000)
   111 #       else
   111 #	    define KHRONOS_APICALL __declspec(dllimport)
   112 #         define KHRONOS_APICALL __declspec(dllimport)
       
   113 #       endif
       
   114 #   else
   112 #   else
   115 #       ifdef __KHR_EXPORTS
   113 #   	ifdef __KHR_EXPORTS
   116 #           define KHRONOS_APICALL
   114 #           define KHRONOS_APICALL
   117 #       else
   115 #   	else
   118 #           define KHRONOS_APICALL extern
   116 #           define KHRONOS_APICALL extern
   119 #       endif
   117 #		endif
   120 #   endif
   118 #   endif
   121 #endif
   119 #endif
   122 
   120 
   123 #define KHRONOS_APIENTRY
   121 #define KHRONOS_APIENTRY
   124 
   122 
   128 
   126 
   129 #ifndef KHRAPI
   127 #ifndef KHRAPI
   130 #	define KHRAPI KHRONOS_APICALL
   128 #	define KHRAPI KHRONOS_APICALL
   131 #endif
   129 #endif
   132 
   130 
   133 #if defined(__ARMCC__)
   131 #if defined (__ARMCC_2__)
   134 #define KHRONOS_APIATTRIBUTES __softfp
   132 #define KHRONOS_APIATTRIBUTES __softfp
   135 #else
   133 #else
   136 #define KHRONOS_APIATTRIBUTES
   134 #define KHRONOS_APIATTRIBUTES
   137 #endif
   135 #endif
   138 
   136