Replace all #ifdef with #if defined (...) for convention
This commit is contained in:
+14
-2
@@ -8,6 +8,18 @@
|
||||
#ifndef _COMMON_H
|
||||
#define _COMMON_H
|
||||
|
||||
#if defined (__linux__)
|
||||
#define _POSIX
|
||||
#elif defined (__APPLE__)
|
||||
#define _POSIX
|
||||
#elif defined (__FreeBSD__)
|
||||
#define _POSIX
|
||||
#elif defined (_WIN32) || defined (_WIN64)
|
||||
#define _WIN
|
||||
#else
|
||||
#error Your Operating System is not supported or detected
|
||||
#endif
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#define _FILE_OFFSET_BITS 64
|
||||
|
||||
@@ -32,11 +44,11 @@
|
||||
|
||||
#define CEIL(a) ((a - (int) (a)) > 0 ? a + 1 : a)
|
||||
|
||||
#ifdef __APPLE__
|
||||
#if defined (__APPLE__)
|
||||
#define __stdcall
|
||||
#endif
|
||||
|
||||
#ifdef _WIN
|
||||
#if defined (_WIN)
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user