ManaPlus
_nvwa.h
Go to the documentation of this file.
1 // -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
2 // vim:tabstop=4:shiftwidth=4:expandtab:
3 
4 /*
5  * Copyright (C) 2013-2015 Wu Yongwei <adah at users dot sourceforge dot net>
6  *
7  * This software is provided 'as-is', without any express or implied
8  * warranty. In no event will the authors be held liable for any
9  * damages arising from the use of this software.
10  *
11  * Permission is granted to anyone to use this software for any purpose,
12  * including commercial applications, and to alter it and redistribute
13  * it freely, subject to the following restrictions:
14  *
15  * 1. The origin of this software must not be misrepresented; you must
16  * not claim that you wrote the original software. If you use this
17  * software in a product, an acknowledgement in the product
18  * documentation would be appreciated but is not required.
19  * 2. Altered source versions must be plainly marked as such, and must
20  * not be misrepresented as being the original software.
21  * 3. This notice may not be removed or altered from any source
22  * distribution.
23  *
24  * This file is part of Stones of Nvwa:
25  * http://sourceforge.net/projects/nvwa
26  *
27  */
28 
37 #ifndef NVWA_NVWA_H
38 #define NVWA_NVWA_H
39 
46 #ifndef NVWA_USE_NAMESPACE
47 #ifdef __cplusplus
48 #define NVWA_USE_NAMESPACE 1
49 #else
50 #define NVWA_USE_NAMESPACE 0
51 #endif // __cplusplus
52 #endif // NVWA_USE_NAMESPACE
53 
54 #if NVWA_USE_NAMESPACE
55 #define NVWA_NAMESPACE_BEGIN namespace nvwa {
56 #define NVWA_NAMESPACE_END }
57 #define NVWA nvwa
58 #else // NVWA_USE_NAMESPACE
59 #define NVWA_NAMESPACE_BEGIN
60 #define NVWA_NAMESPACE_END
61 #define NVWA
62 #endif // NVWA_USE_NAMESPACE
63 
64 #ifndef NVWA_APPLE
65 #if defined(__APPLE__) && defined(__MACH__)
66 #define NVWA_APPLE 1
67 #else
68 #define NVWA_APPLE 0
69 #endif
70 #endif // NVWA_APPLE
71 
72 #ifndef NVWA_CYGWIN
73 #if defined(__CYGWIN__)
74 #define NVWA_CYGWIN 1
75 #else
76 #define NVWA_CYGWIN 0
77 #endif
78 #endif // NVWA_CYGWIN
79 
80 #ifndef NVWA_LINUX
81 #if defined(__linux__) || defined(__linux)
82 #define NVWA_LINUX 1
83 #else
84 #define NVWA_LINUX 0
85 #endif
86 #endif // NVWA_LINUX
87 
88 #ifndef NVWA_UNIX
89 #if defined(__unix__) || defined(__unix) || NVWA_APPLE
90 #define NVWA_UNIX 1
91 #else
92 #define NVWA_UNIX 0
93 #endif
94 #endif // NVWA_UNIX
95 
96 #ifndef NVWA_WIN32
97 #if defined(_WIN32)
98 #define NVWA_WIN32 1
99 #else
100 #define NVWA_WIN32 0
101 #endif
102 #endif // NVWA_WIN32
103 
104 #ifndef NVWA_WINDOWS
105 #if NVWA_CYGWIN || NVWA_WIN32
106 #define NVWA_WINDOWS 1
107 #else
108 #define NVWA_WINDOWS 0
109 #endif
110 #endif // NVWA_WINDOWS
111 
112 #endif // NVWA_NVWA_H