Config.hpp
1 #ifndef CPP3DS_CONFIG_HPP
2 #define CPP3DS_CONFIG_HPP
3 
4 
6 // Define the cpp3ds version
8 #define CPP3DS_VERSION_MAJOR 0
9 #define CPP3DS_VERSION_MINOR 1
10 
12 // Define portable fixed-size types
14 namespace cpp3ds
15 {
16  // All "common" platforms use the same size for char, short and int
17  // (basically there are 3 types for 3 sizes, so no other match is possible),
18  // we can use them without doing any kind of check
19 
20  // 8 bits integer types
21  typedef signed char Int8;
22  typedef unsigned char Uint8;
23 
24  // 16 bits integer types
25  typedef signed short Int16;
26  typedef unsigned short Uint16;
27 
28  // 32 bits integer types
29  typedef signed int Int32;
30  typedef unsigned int Uint32;
31 
32  // 64 bits integer types
33  #if defined(_MSC_VER)
34  typedef signed __int64 Int64;
35  typedef unsigned __int64 Uint64;
36  #else
37  typedef signed long long Int64;
38  typedef unsigned long long Uint64;
39  #endif
40 
41 }
42 
43 #endif