aboutsummaryrefslogtreecommitdiff
path: root/include/env.hpp
blob: 1e102805e31c4db228f96c8495915fa3f1690afd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once

#define OS_FAMILY_WINDOWS 0
#define OS_FAMILY_POSIX 1

#if defined(_WIN32) || defined(_WIN64)
    #if defined(_WIN64)
        #define SYS_ENV_64BIT
    #else
        #define SYS_ENV_32BIT
    #endif
    #define OS_FAMILY OS_FAMILY_WINDOWS

	#ifndef UNICODE
	#define UNICODE
	#endif

	#ifndef _UNICODE
	#define _UNICODE
	#endif

	#ifndef WIN32_LEAN_AND_MEAN
	#define WIN32_LEAN_AND_MEAN
	#endif

	#include <windows.h>
#endif

#if defined(__linux__) || defined(__unix__) || defined(__APPLE__) || defined(_POSIX_VERSION)
    #define OS_FAMILY OS_FAMILY_POSIX
#endif