Geen omschrijving
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

olcPGE_Common.h 811B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef OLC_PGE_COMMON
  2. #define OLC_PGE_COMMON
  3. #ifdef _WIN32
  4. // Link to libraries
  5. #ifndef __MINGW32__
  6. #pragma comment(lib, "user32.lib")
  7. #pragma comment(lib, "gdi32.lib")
  8. #pragma comment(lib, "gdiplus.lib")
  9. #else
  10. // In Code::Blocks, Select C++14 in your build options, and add the
  11. // following libs to your linker: user32 gdi32 opengl32 gdiplus
  12. #if !defined _WIN32_WINNT
  13. #ifdef HAVE_MSMF
  14. #define _WIN32_WINNT 0x0600 // Windows Vista
  15. #else
  16. #define _WIN32_WINNT 0x0500 // Windows 2000
  17. #endif
  18. #endif
  19. #endif
  20. // Include WinAPI
  21. #include <windows.h>
  22. #include <gdiplus.h>
  23. #else
  24. #endif
  25. #include <string>
  26. namespace olc {
  27. enum rcode {
  28. FAIL = 0,
  29. OK = 1,
  30. NO_FILE = -1,
  31. };
  32. std::wstring ConvertS2W(std::string s);
  33. }
  34. #endif