Macros.h
Go to the documentation of this file.
1 /*************************************************************************
2 > File Name: Macros.h
3 > Project Name: CubbyFlow
4 > Author: Chan-Ho Chris Ohk
5 > Purpose: Macro lists for CubbyFlow.
6 > Created Time: 2017/01/31
7 > Copyright (c) 2018, Chan-Ho Chris Ohk
8 *************************************************************************/
9 #ifndef CUBBYFLOW_MACROS_H
10 #define CUBBYFLOW_MACROS_H
11 
12 #if defined(_WIN32) || defined(_WIN64)
13 # define CUBBYFLOW_WINDOWS
14 #elif defined(__APPLE__)
15 # define CUBBYFLOW_APPLE
16 # ifndef CUBBYFLOW_IOS
17 # define CUBBYFLOW_MACOSX
18 # endif
19 #elif defined(linux) || defined(__linux__)
20 # define CUBBYFLOW_LINUX
21 #endif
22 
23 #ifdef CUBBYFLOW_WINDOWS
24 #include <BaseTsd.h>
25 typedef SSIZE_T ssize_t;
26 #else
27 #include <sys/types.h>
28 #endif
29 
30 #ifndef UNUSED_VARIABLE
31 # define UNUSED_VARIABLE(x) ((void)x)
32 #endif
33 
34 #endif