equal
deleted
inserted
replaced
1 /* |
1 /* |
2 SDL - Simple DirectMedia Layer |
2 SDL - Simple DirectMedia Layer |
3 Copyright (C) 1997-2009 Sam Lantinga |
3 Copyright (C) 1997-2012 Sam Lantinga |
4 |
4 |
5 This library is free software; you can redistribute it and/or |
5 This library is free software; you can redistribute it and/or |
6 modify it under the terms of the GNU Library General Public |
6 modify it under the terms of the GNU Library General Public |
7 License as published by the Free Software Foundation; either |
7 License as published by the Free Software Foundation; either |
8 version 2 of the License, or (at your option) any later version. |
8 version 2 of the License, or (at your option) any later version. |
41 * Some compilers use a special export keyword |
41 * Some compilers use a special export keyword |
42 */ |
42 */ |
43 #ifndef DECLSPEC |
43 #ifndef DECLSPEC |
44 # if defined(__BEOS__) || defined(__HAIKU__) |
44 # if defined(__BEOS__) || defined(__HAIKU__) |
45 # if defined(__GNUC__) |
45 # if defined(__GNUC__) |
46 # define DECLSPEC __declspec(dllexport) |
46 # define DECLSPEC |
47 # else |
47 # else |
48 # define DECLSPEC __declspec(export) |
48 # define DECLSPEC __declspec(export) |
49 # endif |
49 # endif |
50 # elif defined(__WIN32__) |
50 # elif defined(__WIN32__) |
51 # ifdef __BORLANDC__ |
51 # ifdef __BORLANDC__ |
130 #pragma warning(disable: 4103) |
130 #pragma warning(disable: 4103) |
131 #endif |
131 #endif |
132 #ifdef __BORLANDC__ |
132 #ifdef __BORLANDC__ |
133 #pragma nopackwarning |
133 #pragma nopackwarning |
134 #endif |
134 #endif |
|
135 #ifdef _M_X64 |
|
136 /* Use 8-byte alignment on 64-bit architectures, so pointers are aligned */ |
|
137 #pragma pack(push,8) |
|
138 #else |
135 #pragma pack(push,4) |
139 #pragma pack(push,4) |
|
140 #endif |
136 #elif (defined(__MWERKS__) && defined(__MACOS__)) |
141 #elif (defined(__MWERKS__) && defined(__MACOS__)) |
137 #pragma options align=mac68k4byte |
142 #pragma options align=mac68k4byte |
138 #pragma enumsalwaysint on |
143 #pragma enumsalwaysint on |
139 #endif /* Compiler needs structure packing set */ |
144 #endif /* Compiler needs structure packing set */ |
140 |
145 |