Version: 1.0
system_info.h
Go to the documentation of this file.
1 // Copyright (c) 2020, the GRAPHGEN contributors, as
2 // shown by the AUTHORS file. All rights reserved.
3 //
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6 
7 #ifndef GRAPHGEN_SYSTEM_INFO_H_
8 #define GRAPHGEN_SYSTEM_INFO_H_
9 
16 #if _WIN32 || _WIN64 || WIN32 || __WIN32__ || __WINDOWS__ || __TOS_WIN__
17 // #ifdef _MSC_VER
18 // #include <intrin.h>
19 // #endif
20 // #ifndef NOMINMAX
21 // #define NOMINMAX // Prevent <Windows.h> header file defines its own macros named max and min
22 // #endif
23 // #include <WINDOWS.h>
24 // #include <lm.h>
25 // #pragma comment(lib, "netapi32.lib")
26 #define GRAPHGEN_WINDOWS
27 #elif __gnu_linux__ || __linux__
28 #define GRAPHGEN_LINUX
29 //#include <sys/utsname.h>
30 #elif __unix || __unix__
31 #define GRAPHGEN_UNIX
32 //#include <sys/utsname.h>
33 #elif __APPLE__ || __MACH__ || macintosh || Macintosh || (__APPLE__ && __MACH__)
34 //#include <sys/types.h>
35 //#include <sys/sysctl.h>
36 #define GRAPHGEN_APPLE
37 #endif
38 
39 
40 #endif // !GRAPHGEN_SYSTEM_INFO_H_