Last change
on this file since 26659 was 26659, checked in by davidb, 11 years ago |
Support for cross-compilation under minwgw added
|
File size:
726 bytes
|
Line | |
---|
1 | /* See http://stackoverflow.com/questions/6802903/c-ifdef-mac-os-x-question and
|
---|
2 | * http://stackoverflow.com/questions/5919996/how-to-detect-reliably-mac-os-x-ios-linux-windows-in-c-preprocessor */
|
---|
3 | #ifndef MGLONG_H
|
---|
4 | #define MGLONG_H
|
---|
5 |
|
---|
6 | #if defined __unix__ || defined __APPLE__ || defined __MINGW32__
|
---|
7 | #include <stdint.h>
|
---|
8 | #else
|
---|
9 | typedef __int8 int8_t;
|
---|
10 | typedef __int16 int16_t;
|
---|
11 | typedef __int32 int32_t;
|
---|
12 | typedef __int64 int64_t;
|
---|
13 | typedef unsigned __int8 uint8_t;
|
---|
14 | typedef unsigned __int16 uint16_t;
|
---|
15 | typedef unsigned __int32 uint32_t;
|
---|
16 | typedef unsigned __int64 uint64_t;
|
---|
17 | #endif
|
---|
18 |
|
---|
19 | #ifndef mg_u_long
|
---|
20 | #define mg_u_long uint32_t
|
---|
21 | #endif
|
---|
22 |
|
---|
23 | #ifndef mg_s_long
|
---|
24 | #define mg_s_long int32_t
|
---|
25 | #endif
|
---|
26 |
|
---|
27 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.