summaryrefslogtreecommitdiffstats
path: root/make/stub_includes/common/gluegenint.h
blob: 5fb400201fe061fc90b10c20586af73751cd0612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef __gluegen_int_h_
#define __gluegen_int_h_

#ifndef GLUEGEN_INT_TYPES_DEFINED
    #define GLUEGEN_INT_TYPES_DEFINED
    /* Define int32_t, int64_t, and uint64_t types for UST/MSC */
    /* (as used in the GL_EXT_timer_query extension). */
    #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
        #include <inttypes.h>
    #elif defined(__sun__)
        #include <inttypes.h>
        #if defined(__STDC__)
            #if defined(__arch64__)
                typedef long int int64_t;
                typedef unsigned long int uint64_t;
            #else
                typedef long long int int64_t;
                typedef unsigned long long int uint64_t;
            #endif /* __arch64__ */
        #endif /* __STDC__ */
    #elif defined( __VMS )
        #include <inttypes.h>
    #elif defined(__SCO__) || defined(__USLC__)
        #include <stdint.h>
    #elif defined(__UNIXOS2__) || defined(__SOL64__)
        typedef long int int32_t;
        typedef unsigned long int uint32_t;
        typedef long long int int64_t;
        typedef unsigned long long int uint64_t;
    #elif defined(WIN32) && defined(__GNUC__)
        #include <stdint.h>
    #elif defined(_WIN32)
        typedef __int32 int32_t;
        typedef unsigned __int32 uint32_t;
        typedef __int64 int64_t;
        typedef unsigned __int64 uint64_t;
    #else
        #include <inttypes.h>     /* Fallback option */
    #endif
#endif

#endif /* __gluegen_int_h_ */