]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/msw/libraries.h | |
3 | // Purpose: Pragmas for linking libs conditionally | |
4 | // Author: Michael Wetherell | |
5 | // Modified by: | |
6 | // RCS-ID: $Id$ | |
7 | // Copyright: (c) 2005 Michael Wetherell | |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _WX_MSW_LIBRARIES_H_ | |
12 | #define _WX_MSW_LIBRARIES_H_ | |
13 | ||
14 | // Notes: | |
15 | // | |
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. | |
19 | ||
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. | |
23 | // | |
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. | |
30 | // | |
31 | // More information: http://support.microsoft.com/?id=894573 | |
32 | ||
33 | #if defined __VISUALC__ && __VISUALC__ >= 1400 | |
34 | #pragma comment(lib,"bufferoverflowu.lib") | |
35 | #endif | |
36 | ||
37 | #endif // _WX_MSW_LIBRARIES_H_ |