polonium/include/sys_id.h

23 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 */