mirror of
https://git.disroot.org/80486DX2-66/polonium.git
synced 2024-11-09 23:12:21 +05:30
24 lines
466 B
C
24 lines
466 B
C
#ifndef _SYS_ID_H
|
|
#define _SYS_ID_H
|
|
|
|
/* macros: definitions */
|
|
// system identification
|
|
#if defined(__MINGW32__) || defined(__MINGW64__)
|
|
# define SYS_NT
|
|
# define SYS_UNIX
|
|
#elif defined(_WIN32)
|
|
# define SYS_NT
|
|
#elif defined(__linux__)
|
|
# define SYS_LINUX
|
|
#elif defined(__APPLE__)
|
|
# define SYS_MAC
|
|
#elif defined(__unix__)
|
|
# define SYS_UNIX
|
|
#endif
|
|
|
|
#if defined(SYS_UNIX) || defined(SYS_LINUX) || defined(SYS_MAC)
|
|
# define SYS_UNIX_GENERAL
|
|
#endif
|
|
|
|
#endif /* _SYS_ID_H */
|