Rev 8209 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8209 | Rev 9561 | ||
---|---|---|---|
Line 46... | Line 46... | ||
46 | # define DECLSPEC |
46 | # define DECLSPEC |
47 | # endif |
47 | # endif |
48 | # endif |
48 | # endif |
49 | #endif |
49 | #endif |
Line -... | Line 50... | ||
- | 50 | ||
- | 51 | /** |
|
- | 52 | * @def SDLCALL |
|
- | 53 | * By default SDL uses the C calling convention |
|
- | 54 | */ |
|
- | 55 | #ifndef SDLCALL |
|
- | 56 | # if defined(__WIN32__) && !defined(__GNUC__) |
|
- | 57 | # define SDLCALL __cdecl |
|
- | 58 | # elif defined(__OS2__) |
|
- | 59 | # if defined (__GNUC__) && __GNUC__ < 4 |
|
- | 60 | # /* Added support for GCC-EMX |
|
- | 61 | # /* this is needed for XFree86/OS2 developement */ |
|
- | 62 | # /* F. Ambacher(anakor@snafu.de) 05.2008 */ |
|
- | 63 | # define SDLCALL _cdecl |
|
- | 64 | # else |
|
- | 65 | # /* On other compilers on OS/2, we use the _System calling convention */ |
|
- | 66 | # /* to be compatible with every compiler */ |
|
- | 67 | # define SDLCALL _System |
|
- | 68 | # endif |
|
- | 69 | # else |
|
- | 70 | # define SDLCALL |
|
- | 71 | # endif |
|
- | 72 | #endif /* SDLCALL */ |
|
50 | 73 | ||
51 | /* Force structure packing at 4 byte alignment. |
74 | /* Force structure packing at 4 byte alignment. |
52 | This is necessary if the header is included in code which has structure |
75 | This is necessary if the header is included in code which has structure |
53 | packing set to an alternate value, say for loading structures from disk. |
76 | packing set to an alternate value, say for loading structures from disk. |
54 | The packing is reset to the previous value in close_code.h |
77 | The packing is reset to the previous value in close_code.h |