config.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/config.h
  3. // Purpose: wxConfig base header
  4. // Author: Julian Smart
  5. // Modified by:
  6. // Created:
  7. // Copyright: (c) Julian Smart
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_CONFIG_H_BASE_
  11. #define _WX_CONFIG_H_BASE_
  12. #include "wx/confbase.h"
  13. #if wxUSE_CONFIG
  14. // ----------------------------------------------------------------------------
  15. // define the native wxConfigBase implementation
  16. // ----------------------------------------------------------------------------
  17. // under Windows we prefer to use the native implementation but can be forced
  18. // to use the file-based one
  19. #if defined(__WINDOWS__) && wxUSE_CONFIG_NATIVE
  20. #include "wx/msw/regconf.h"
  21. #define wxConfig wxRegConfig
  22. #elif defined(__WXOS2__) && wxUSE_CONFIG_NATIVE
  23. #include "wx/os2/iniconf.h"
  24. #define wxConfig wxIniConfig
  25. #else // either we're under Unix or wish to always use config files
  26. #include "wx/fileconf.h"
  27. #define wxConfig wxFileConfig
  28. #endif
  29. #endif // wxUSE_CONFIG
  30. #endif // _WX_CONFIG_H_BASE_