Subversion Repositories eduke32

Rev

Rev 6780 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6780 Rev 7752
Line 88... Line 88...
88
 *      KHRONOS_APICALL void KHRONOS_APIENTRY funcname(
88
 *      KHRONOS_APICALL void KHRONOS_APIENTRY funcname(
89
 *                                  int arg1,
89
 *                                  int arg1,
90
 *                                  int arg2) KHRONOS_APIATTRIBUTES;
90
 *                                  int arg2) KHRONOS_APIATTRIBUTES;
91
 */
91
 */
92
92
-
 
93
#if defined(__SCITECH_SNAP__) && !defined(KHRONOS_STATIC)
-
 
94
#   define KHRONOS_STATIC 1
-
 
95
#endif
-
 
96
93
/*-------------------------------------------------------------------------
97
/*-------------------------------------------------------------------------
94
 * Definition of KHRONOS_APICALL
98
 * Definition of KHRONOS_APICALL
95
 *-------------------------------------------------------------------------
99
 *-------------------------------------------------------------------------
96
 * This precedes the return type of the function in the function prototype.
100
 * This precedes the return type of the function in the function prototype.
97
 */
101
 */
98
#if defined(_WIN32) && !defined(__SCITECH_SNAP__)
102
#if defined(KHRONOS_STATIC)
-
 
103
    /* If the preprocessor constant KHRONOS_STATIC is defined, make the
-
 
104
     * header compatible with static linking. */
-
 
105
#   define KHRONOS_APICALL
-
 
106
#elif defined(_WIN32)
99
#   define KHRONOS_APICALL __declspec(dllimport)
107
#   define KHRONOS_APICALL __declspec(dllimport)
100
#elif defined (__SYMBIAN32__)
108
#elif defined (__SYMBIAN32__)
101
#   define KHRONOS_APICALL IMPORT_C
109
#   define KHRONOS_APICALL IMPORT_C
102
#elif defined(__ANDROID__)
110
#elif defined(__ANDROID__)
103
#   define KHRONOS_APICALL __attribute__((visibility("default")))
111
#   define KHRONOS_APICALL __attribute__((visibility("default")))
Line 109... Line 117...
109
 * Definition of KHRONOS_APIENTRY
117
 * Definition of KHRONOS_APIENTRY
110
 *-------------------------------------------------------------------------
118
 *-------------------------------------------------------------------------
111
 * This follows the return type of the function  and precedes the function
119
 * This follows the return type of the function  and precedes the function
112
 * name in the function prototype.
120
 * name in the function prototype.
113
 */
121
 */
114
#if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__)
122
#if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(KHRONOS_STATIC)
115
    /* Win32 but not WinCE */
123
    /* Win32 but not WinCE */
116
#   define KHRONOS_APIENTRY __stdcall
124
#   define KHRONOS_APIENTRY __stdcall
117
#else
125
#else
118
#   define KHRONOS_APIENTRY
126
#   define KHRONOS_APIENTRY
119
#endif
127
#endif