+ #define wxSUFFIX_DEBUG ""
+ #ifdef _UNICODE
+ #define wxSUFFIX u
+ #else // !_UNICODE
+ // don't define wxSUFFIX at all as preprocessor operations don't work
+ // with empty values so we need to check for this case specially below
+ #endif // _UNICODE/!_UNICODE
+#endif
+
+// compiler-specific prefix: by default it's always just "vc" for compatibility
+// reasons but if you use multiple MSVC versions you probably build them with
+// COMPILER_PREFIX=vcXX and in this case you may want to either predefine
+// wxMSVC_VERSION as "XX" or define wxMSVC_VERSION_AUTO to use the appropriate
+// version depending on the compiler used
+#ifdef wxMSVC_VERSION
+ #define wxCOMPILER_PREFIX wxCONCAT2(vc, wxMSVC_VERSION)
+#elif defined(wxMSVC_VERSION_AUTO)
+ #if _MSC_VER == 1200
+ #define wxCOMPILER_PREFIX vc60
+ #elif _MSC_VER == 1300
+ #define wxCOMPILER_PREFIX vc70
+ #elif _MSC_VER == 1310
+ #define wxCOMPILER_PREFIX vc71
+ #elif _MSC_VER == 1400
+ #define wxCOMPILER_PREFIX vc80
+ #elif _MSC_VER == 1500
+ #define wxCOMPILER_PREFIX vc90
+ #elif _MSC_VER == 1600
+ #define wxCOMPILER_PREFIX vc100
+ #else
+ #error "Unknown MSVC compiler version, please report to wx-dev."
+ #endif
+#else
+ #define wxCOMPILER_PREFIX vc
+#endif
+
+// architecture-specific part: not used (again, for compatibility), for x86
+#if defined(_M_X64)
+ #define wxARCH_SUFFIX _amd64
+#elif defined(_M_IA64)
+ #define wxARCH_SUFFIX _ia64
+#else // assume _M_IX86
+ #define wxARCH_SUFFIX
+#endif
+
+#ifdef WXUSINGDLL
+ #define wxLIB_SUBDIR wxCONCAT3(wxCOMPILER_PREFIX, wxARCH_SUFFIX, _dll)
+#else // !DLL
+ #define wxLIB_SUBDIR wxCONCAT3(wxCOMPILER_PREFIX, wxARCH_SUFFIX, _lib)
+#endif // DLL/!DLL
+
+
+// the real setup.h header file we need is in the build-specific directory,
+// construct the path to it
+#ifdef wxSUFFIX
+ #define wxSETUPH_PATH \
+ wxCONCAT5(../../../lib/, wxLIB_SUBDIR, /msw, wxSUFFIX, /wx/setup.h)
+#else // suffix is empty
+ #define wxSETUPH_PATH \
+ wxCONCAT3(../../../lib/, wxLIB_SUBDIR, /msw/wx/setup.h)
+#endif
+
+#define wxSETUPH_PATH_STR wxSTRINGIZE(wxSETUPH_PATH)
+
+#include wxSETUPH_PATH_STR
+
+
+// the library names depend on the build, these macro builds the correct
+// library name for the given base name
+#ifdef wxSUFFIX
+ #define wxSUFFIX_STR wxSTRINGIZE(wxSUFFIX)
+#else // suffix is empty
+ #define wxSUFFIX_STR ""
+#endif
+#define wxSHORT_VERSION_STRING \
+ wxSTRINGIZE(wxMAJOR_VERSION) wxSTRINGIZE(wxMINOR_VERSION)
+
+#define wxWX_LIB_NAME(name, subname) \
+ "wx" name wxSHORT_VERSION_STRING wxSUFFIX_STR subname
+
+#define wxBASE_LIB_NAME(name) wxWX_LIB_NAME("base", "_" name)
+#define wxMSW_LIB_NAME(name) wxWX_LIB_NAME("msw", "_" name)
+
+// this one is for 3rd party libraries: they don't have the version number
+// in their names and usually exist in ANSI version only (except for regex)
+#define wx3RD_PARTY_LIB_NAME(name) "wx" name wxSUFFIX_DEBUG
+
+// special version for regex as it does have a Unicode version
+#define wx3RD_PARTY_LIB_NAME_U(name) "wx" name wxSUFFIX_STR
+
+#pragma comment(lib, wxWX_LIB_NAME("base", ""))
+
+#ifndef wxNO_NET_LIB
+ #pragma comment(lib, wxBASE_LIB_NAME("net"))
+#endif
+#ifndef wxNO_XML_LIB
+ #pragma comment(lib, wxBASE_LIB_NAME("xml"))