]>
Commit | Line | Data |
---|---|---|
1a4fe894 JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: msw/wince/wxbase.cpp | |
3 | // Purpose: wxBase | |
4 | // Author: Marco Cavallini | |
5 | // Modified by: | |
6 | // Created: 05/12/2002 | |
7 | // RCS-ID: | |
8 | // Copyright: (c) KOAN SAS ( www.koansoftware.com ) | |
9 | // Licence: wxWindows license | |
10 | /////////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | // For compilers that support precompilation, includes "wx.h". | |
13 | #include "wx/wxprec.h" | |
14 | ||
15 | /* I don't remember why This does not work under emulation | |
16 | #ifdef _WIN32_WCE_EMULATION | |
17 | #error 'This does not work under emulation' | |
18 | #endif | |
19 | */ | |
20 | ||
21 | ///////////////////////////////// | |
22 | #if 0 | |
23 | The hardware is identified by platform specific defines; usually of the form | |
24 | WCE_PLATFORM_XXXX where XXXX is the name of the platform. Pocket PCs use the | |
25 | older Palm Size PC define WIN32_PLATFORM_PSPC which has a value for the | |
26 | version number of the platform. A Pocket PC 2002 device build can be | |
27 | detected as follows: | |
28 | ||
29 | #if defined(WIN32_PLATFORM_PSPC) && WIN32_PLATFORM_PSPC == 310 | |
30 | // Put Pocket PC 2002 specific code here... | |
31 | #endif | |
32 | // WINCE | |
33 | #if defined(_WIN32_WCE) | |
34 | #pragma message("\t wxWindows Target: WINDOWS CE") | |
35 | // #include <windows.h> | |
36 | #endif | |
37 | #endif | |
38 | ||
39 | #if defined (_WIN32_WCE) | |
40 | #if _WIN32_WCE == 300 | |
41 | #pragma message("\t WINDOWS-CE 3.00") | |
42 | #elif _WIN32_WCE == 310 | |
43 | #pragma message("\t WINDOWS-CE 3.10") | |
44 | #endif | |
45 | #endif | |
46 | ||
47 | ||
48 | // WINCE | |
49 | #if defined(_WIN32_WCE) | |
50 | #pragma message("\t wxWindows Target: WINDOWS CE") | |
51 | #endif | |
52 | ||
53 | // WIN32 | |
54 | #if !defined(_WIN32_WCE) && defined(_WIN32) | |
55 | #pragma message("\t wxWindows Target: WINDOWS 32") | |
56 | #endif | |
57 | ||
58 | // LINUX | |
59 | #if defined(__GNUG__) | |
60 | #pragma message("\t wxWindows Target: LINUX GNU") | |
61 | #endif | |
62 | ||
63 | ||
64 | ||
65 | ///////////////////////////////// | |
368c9c6d | 66 | // Print out the actual platform |
1a4fe894 JS |
67 | ///////////////////////////////// |
68 | ||
69 | #if wxUSE_GUI | |
368c9c6d | 70 | #if defined(__WXMSW__) && !defined(__WXWINCE__) |
1a4fe894 JS |
71 | #pragma message("\t CE : __WXMSW__") |
72 | #elif defined(__WXWINCE__) | |
73 | #pragma message("\t CE : __WXWINCE__") | |
74 | #elif defined(__WXMOTIF__) | |
75 | #pragma message("\t CE : __WXMOTIF__") | |
76 | #elif defined(__WXMGL__) | |
77 | #pragma message("\t CE : __WXMGL__") | |
78 | #elif defined(__WXGTK__) | |
79 | #pragma message("\t CE : __WXGTK__") | |
80 | #elif defined(__WXX11__) | |
81 | #pragma message("\t CE : __WXX11__") | |
82 | #elif defined(__WXMAC__) | |
83 | #pragma message("\t CE : __WXMAC__") | |
84 | #elif defined(__WXPM__) | |
85 | #pragma message("\t CE : __WXPM__") | |
86 | #elif defined(__WXSTUBS__) | |
87 | #pragma message("\t CE : __WXSTUBS__") | |
88 | #endif | |
89 | #endif // !GUI |