libt3window
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules
window_api.h
1 /* Copyright (C) 2011 G.P. Halkes
2  This program is free software: you can redistribute it and/or modify
3  it under the terms of the GNU General Public License version 3, as
4  published by the Free Software Foundation.
5 
6  This program is distributed in the hope that it will be useful,
7  but WITHOUT ANY WARRANTY; without even the implied warranty of
8  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9  GNU General Public License for more details.
10 
11  You should have received a copy of the GNU General Public License
12  along with this program. If not, see <http://www.gnu.org/licenses/>.
13 */
14 #ifndef T3_WINDOW_API_H
15 #define T3_WINDOW_API_H
16 
17 #if defined(_WIN32) || defined(__CYGWIN__)
18  #define T3_WINDOW_EXPORT __declspec(dllexport)
19  #define T3_WINDOW_IMPORT __declspec(dllimport)
20  #define T3_WINDOW_LOCAL
21 #else
22  #if __GNUC__ >= 4 || defined(__clang__)
23  #define T3_WINDOW_EXPORT __attribute__((visibility("default")))
24  #define T3_WINDOW_IMPORT __attribute__((visibility("default")))
25  #define T3_WINDOW_LOCAL __attribute__((visibility("hidden")))
26  #else
27  #define T3_WINDOW_EXPORT
28  #define T3_WINDOW_IMPORT
29  #define T3_WINDOW_LOCAL
30  #endif
31 #endif
32 
33 #ifdef T3_WINDOW_BUILD_DSO
34  #define T3_WINDOW_API T3_WINDOW_EXPORT
35 #else
36  #define T3_WINDOW_API T3_WINDOW_IMPORT
37 #endif
38 
39 #ifndef _T3_BOOL
40 #define _T3_BOOL
41 
42 enum {
45 };
47 typedef char t3_bool;
48 #endif
49 
50 #endif
True.
Definition: window_api.h:44
char t3_bool
A boolean type that does not clash with C++ or C99 bool.
Definition: window_api.h:47
False.
Definition: window_api.h:43