equal
deleted
inserted
replaced
33 (defined(__MWERKS__) && !defined(__BEOS__)) || \ |
33 (defined(__MWERKS__) && !defined(__BEOS__)) || \ |
34 defined(__MACOS__) || defined(__MACOSX__) || \ |
34 defined(__MACOS__) || defined(__MACOSX__) || \ |
35 defined(__SYMBIAN32__) || defined(QWS) |
35 defined(__SYMBIAN32__) || defined(QWS) |
36 |
36 |
37 #ifdef __cplusplus |
37 #ifdef __cplusplus |
38 #define C_LINKAGE "C" |
38 #define C_LINKAGE "C" |
39 #else |
39 #else |
40 #define C_LINKAGE |
40 #define C_LINKAGE |
41 #endif /* __cplusplus */ |
41 #endif /* __cplusplus */ |
42 |
42 |
43 /** The application's main() function must be called with C linkage, |
43 /** The application's main() function must be called with C linkage, |
44 * and should be declared like this: |
44 * and should be declared like this: |
45 * @code |
45 * @code |
46 * #ifdef __cplusplus |
46 * #ifdef __cplusplus |
47 * extern "C" |
47 * extern "C" |
48 * #endif |
48 * #endif |
49 * int main(int argc, char *argv[]) |
49 * int main(int argc, char *argv[]) |
50 * { |
50 * { |
51 * } |
51 * } |
52 * @endcode |
52 * @endcode |
53 */ |
53 */ |
54 #define main SDL_main |
54 #define main SDL_main |
55 |
55 |
56 /** The prototype for the application's main() function */ |
56 /** The prototype for the application's main() function */ |
57 extern C_LINKAGE int SDL_main(int argc, char *argv[]); |
57 extern C_LINKAGE int SDL_main(int argc, char *argv[]); |
58 |
58 |
59 |
59 |