]>
Commit | Line | Data |
---|---|---|
c8d58531 MW |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/msw/rcdefs.h | |
3 | // Purpose: Fallback for the generated rcdefs.h under the lib directory | |
4 | // Author: Mike Wetherell | |
5 | // RCS-ID: $Id$ | |
6 | // Copyright: (c) 2005 Mike Wetherell | |
7 | // Licence: wxWindows licence | |
8 | /////////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | #ifndef _WX_RCDEFS_H | |
11 | #define _WX_RCDEFS_H | |
12 | ||
15f74a3f VZ |
13 | #ifdef __GNUC__ |
14 | // We must be using windres which uses gcc as its preprocessor. We do need | |
15 | // to generate the manifest then as gcc doesn't do it automatically and we | |
16 | // can define the architecture macro on our own as all the usual symbols | |
17 | // are available (unlike with Microsoft RC.EXE which doesn't predefine | |
18 | // anything useful at all). | |
19 | #ifndef wxUSE_RC_MANIFEST | |
20 | #define wxUSE_RC_MANIFEST 1 | |
21 | #endif | |
22 | ||
23 | #if defined __i386__ | |
24 | #ifndef WX_CPU_X86 | |
25 | #define WX_CPU_X86 | |
26 | #endif | |
27 | #elif defined __x86_64__ | |
28 | #ifndef WX_CPU_AMD64 | |
29 | #define WX_CPU_AMD64 | |
30 | #endif | |
31 | #elif defined __ia64__ | |
32 | #ifndef WX_CPU_IA64 | |
33 | #define WX_CPU_IA64 | |
34 | #endif | |
35 | #endif | |
36 | #endif | |
37 | ||
38 | // Don't do anything here for the other compilers, in particular don't define | |
39 | // WX_CPU_X86 here as we used to do. If people define wxUSE_RC_MANIFEST, they | |
40 | // must also define the architecture constant correctly. | |
c8d58531 MW |
41 | |
42 | #endif |