wxprec.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/wxprec.h
  3. // Purpose: Includes the appropriate files for precompiled headers
  4. // Author: Julian Smart
  5. // Modified by:
  6. // Created: 01/02/97
  7. // Copyright: (c) Julian Smart
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. // compiler detection; includes setup.h
  11. #include "wx/defs.h"
  12. // check if to use precompiled headers: do it for most Windows compilers unless
  13. // explicitly disabled by defining NOPCH
  14. #if defined(__VISUALC__) || \
  15. defined(__DMC__) || \
  16. defined(__VISAGECPP__) || \
  17. defined(__WATCOMC__) || \
  18. defined(__BORLANDC__)
  19. // If user did not request NOCPH and we're not building using configure
  20. // then assume user wants precompiled headers.
  21. #if !defined(NOPCH) && !defined(__WX_SETUP_H__)
  22. #define WX_PRECOMP
  23. #endif
  24. #endif
  25. // For some reason, this must be defined for common dialogs to work.
  26. #ifdef __WATCOMC__
  27. #define INCLUDE_COMMDLG_H 1
  28. #endif
  29. #ifdef WX_PRECOMP
  30. // include "wx/chartype.h" first to ensure that UNICODE macro is correctly set
  31. // _before_ including <windows.h>
  32. #include "wx/chartype.h"
  33. // include standard Windows headers
  34. #if defined(__WINDOWS__)
  35. #include "wx/msw/wrapwin.h"
  36. #include "wx/msw/private.h"
  37. #endif
  38. #if defined(__WXMSW__)
  39. #include "wx/msw/wrapcctl.h"
  40. #include "wx/msw/wrapcdlg.h"
  41. #include "wx/msw/missing.h"
  42. #endif
  43. // include <os2.h>
  44. #ifdef __OS2__
  45. # include "wx/os2/private.h"
  46. #endif
  47. // include the most common wx headers
  48. #include "wx/wx.h"
  49. #endif // WX_PRECOMP