// $Id$ // // The contents of this file are subject to the BOINC Public License // Version 1.0 (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // http://boinc.berkeley.edu/license_1.0.txt // // Software distributed under the License is distributed on an "AS IS" // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the // License for the specific language governing rights and limitations // under the License. // // The Original Code is the Berkeley Open Infrastructure for Network Computing. // // The Initial Developer of the Original Code is the SETI@home project. // Portions created by the SETI@home project are Copyright (C) 2002 // University of California at Berkeley. All Rights Reserved. // // Contributor(s): // // Revision History: // #ifndef __STDWX_H__ #define __STDWX_H__ #ifdef _WIN32 // Modify the following defines if you have to target a platform prior to the ones specified below. // Refer to MSDN for the latest info on corresponding values for different platforms. #ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later. #define WINVER 0x0400 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later. #endif #ifndef _WIN32_WINNT // Allow use of features specific to Windows NT 4 or later. #define _WIN32_WINNT 0x0400 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later. #endif #ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later. #define _WIN32_WINDOWS 0x0400 // Change this to the appropriate value to target Windows Me or later. #endif #ifndef _WIN32_IE // Allow use of features specific to IE 5.01 or later. #define _WIN32_IE 0x0501 // Change this to the appropriate value to target IE 6.0 or later. #endif #endif #include // configuration support // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif #include // diagnostics support #include // logging support #include // accelerator support #include // regular expression support #include // command line support #include // system settings support #include // internationalization support #include // timer support #include #include #include // filesystem support #include // memory virtual filesystem support #include // memory based device context #include // bitmap modification support #include // toolbars support #include // list control support #include // messagebox dialog support #include // panel support #include // notebook support #include // html window support #include // static line support #include // static bitmap support #include // clipboard support #include // date/time support #include #include #include #include #include #include #include #include #include #ifndef NOTASKBAR #include // taskbar support #endif #ifdef __WXMSW__ // Windows Headers // #include #endif // Standard Libraries // // C headers #include #include #include #include #include #include #include #include #include #include #include #include #include #include // C++ headers #include #include #include #include #include #include #include #include #include #define vsnprintf _vsnprintf #define snprintf _snprintf #define fdopen _fdopen #define dup _dup #define unlink _unlink #define strdup _strdup #define read _read #define stat _stat // On the Win32 platform include file and line number information for each // memory allocation/deallocation #if (defined(__WIN32__) && defined(__VISUALC__) && !defined(__AFX_H__)) #ifdef _DEBUG #define malloc(s) _malloc_dbg(s, _NORMAL_BLOCK, __FILE__, __LINE__) #define calloc(c, s) _calloc_dbg(c, s, _NORMAL_BLOCK, __FILE__, __LINE__) #define realloc(p, s) _realloc_dbg(p, s, _NORMAL_BLOCK, __FILE__, __LINE__) #define _expand(p, s) _expand_dbg(p, s, _NORMAL_BLOCK, __FILE__, __LINE__) #define free(p) _free_dbg(p, _NORMAL_BLOCK) #define _msize(p) _msize_dbg(p, _NORMAL_BLOCK) #define _aligned_malloc(s, a) _aligned_malloc_dbg(s, a, __FILE__, __LINE__) #define _aligned_realloc(p, s, a) _aligned_realloc_dbg(p, s, a, __FILE__, __LINE__) #define _aligned_offset_malloc(s, a, o) _aligned_offset_malloc_dbg(s, a, o, __FILE__, __LINE__) #define _aligned_offset_realloc(p, s, a, o) _aligned_offset_realloc_dbg(p, s, a, o, __FILE__, __LINE__) #define _aligned_free(p) _aligned_free_dbg(p) #define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__) // The following macros set and clear, respectively, given bits // of the C runtime library debug flag, as specified by a bitmask. #define SET_CRT_DEBUG_FIELD(a) _CrtSetDbgFlag((a) | _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG)) #define CLEAR_CRT_DEBUG_FIELD(a) _CrtSetDbgFlag(~(a) & _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG)) #else //_DEBUG #define DEBUG_NEW new #define SET_CRT_DEBUG_FIELD(a) ((void) 0) #define CLEAR_CRT_DEBUG_FIELD(a) ((void) 0) #endif //_DEBUG #define new DEBUG_NEW #endif //__WIN32__ && __VISUALC && !__AFX_H__ #endif //__STDWX_H__