]> git.saurik.com Git - wxWidgets.git/blob - include/wx/build.h
compilation fix
[wxWidgets.git] / include / wx / build.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/build.h
3 // Purpose: wxBuildOptions class declaration
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 07.05.02
7 // RCS-ID: $Id$
8 // Copyright: (c) 2002 Vadim Zeitlin <vadim@wxwindows.org>
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_BUILD_H_
13 #define _WX_BUILD_H_
14
15 #include "wx/version.h"
16
17 class WXDLLIMPEXP_BASE wxAppConsole;
18
19 // ----------------------------------------------------------------------------
20 // wxBuildOptions
21 // ----------------------------------------------------------------------------
22
23 class wxBuildOptions
24 {
25 public:
26 // the ctor must be inline to get the compilation settings of the code
27 // which included this header
28 wxBuildOptions()
29 {
30 // debug/release
31 #ifdef __WXDEBUG__
32 m_isDebug = TRUE;
33 #else
34 m_isDebug = FALSE;
35 #endif
36
37 // version: we don't test the micro version as hopefully changes
38 // between 2 micro versions don't result in fatal compatibility
39 // problems
40 m_verMaj = wxMAJOR_VERSION;
41 m_verMin = wxMINOR_VERSION;
42 }
43
44 private:
45 // the version
46 int m_verMaj,
47 m_verMin;
48
49 // compiled with __WXDEBUG__?
50 bool m_isDebug;
51
52 // actually only CheckBuildOptions() should be our friend but well...
53 friend class wxAppConsole;
54 };
55
56 #endif // _WX_BUILD_H_
57