]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/libraries.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/libraries.h
3 // Purpose: Pragmas for linking libs conditionally
4 // Author: Michael Wetherell
7 // Copyright: (c) 2005 Michael Wetherell
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_MSW_LIBRARIES_H_
12 #define _WX_MSW_LIBRARIES_H_
16 // In general the preferred place to add libs is in the bakefiles. This file
17 // can be used where libs must be added conditionally, for those compilers that
18 // support a way to do that.
20 // Newer versions of VC++ support the /GS option which add buffer overflow
21 // checks. This adds into the generated code calls to support functions in in
22 // the runtime library.
24 // Starting with VC++ 8 this option is on by default, and code such as the
25 // runtime library that we need to link is compiled with it. Some versions of
26 // the runtime library don't include the support code, and a separate library
27 // bufferoverflowu.lib must be linked. If all versions of VC++ 8 that can
28 // compile wxWidgets have this lib we can link it here, if not then this will
29 // have to be removed.
31 // More information: http://support.microsoft.com/?id=894573
33 #if defined __VISUALC__ && __VISUALC__ >= 1400
34 #pragma comment(lib,"bufferoverflowu.lib")
37 #endif // _WX_MSW_LIBRARIES_H_