win32.h 676 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef _WIN32_H
  2. #define _WIN32_H
  3. #ifndef WIN32
  4. #error this file is only for win32
  5. #endif
  6. #ifndef _PLATFORM_H
  7. #error this file should only be included from platform.h
  8. #endif
  9. // this should be the *only* place windows.h gets included!
  10. #ifndef WIN32_LEAN_AND_MEAN
  11. #define WIN32_LEAN_AND_MEAN
  12. #endif
  13. #include <windows.h>
  14. #ifndef _WIN32_WCE
  15. #include <io.h>
  16. #endif
  17. #if defined(_MSC_VER) // msvc
  18. # define WASABIDLLEXPORT __declspec(dllexport)
  19. # if _MSC_VER >= 1100
  20. # define NOVTABLE __declspec(novtable)
  21. # endif
  22. #endif
  23. #define _TRY __try
  24. #define _EXCEPT(x) __except(x)
  25. #define OSPIPE HANDLE
  26. typedef WCHAR OSFNCHAR;
  27. typedef LPWSTR OSFNSTR;
  28. typedef LPCWSTR OSFNCSTR;
  29. #endif