EHS
OS.h
Go to the documentation of this file.
1#pragma once
2
3#if defined(_WIN32) || defined(_WIN64)
4 #define EHS_OS_WINDOWS
5 #define EHS_FILE __FILE__
6 #define EHS_FUNC __FUNCTION__
7 #define EHS_LINE __LINE__
8
9 #if defined(EHS_LIB_EXPORT)
10 #define EHS_LIB_IO __declspec(dllexport)
11 #elif defined(EHS_LIB_IMPORT)
12 #define EHS_LIB_IO __declspec(dllimport)
13 #else
14 #define EHS_LIB_IO
15 #endif
16
17 #ifndef NOMINMAX
18 #define NOMINMAX
19 #endif
20
21 #ifndef WIN32_LEAN_AND_MEAN
22 #define WIN32_LEAN_AND_MEAN
23 #endif
24
25 #include <Windows.h>
26
27 typedef void* Handle;
28#elif defined(__linux__)
29 #define EHS_OS_LINUX
30 #define EHS_FILE __FILE__
31 #define EHS_FUNC __FUNCTION__
32 #define EHS_LINE __LINE__
33 #define EHS_LIB_IO
34
35 typedef int Handle;
36#endif