This repository has been archived by the owner on Nov 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_api.h
50 lines (44 loc) · 1.58 KB
/
config_api.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* Copyright (C) 2011 G.P. Halkes
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 3, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef T3_CONFIG_API_H
#define T3_CONFIG_API_H
#if defined(_WIN32) || defined(__CYGWIN__)
#define T3_CONFIG_EXPORT __declspec(dllexport)
#define T3_CONFIG_IMPORT __declspec(dllimport)
#define T3_CONFIG_LOCAL
#else
#if __GNUC__ >= 4 || defined(__clang__)
#define T3_CONFIG_EXPORT __attribute__((visibility("default")))
#define T3_CONFIG_IMPORT __attribute__((visibility("default")))
#define T3_CONFIG_LOCAL __attribute__((visibility("hidden")))
#else
#define T3_CONFIG_EXPORT
#define T3_CONFIG_IMPORT
#define T3_CONFIG_LOCAL
#endif
#endif
#ifdef T3_CONFIG_BUILD_DSO
#define T3_CONFIG_API T3_CONFIG_EXPORT
#else
#define T3_CONFIG_API T3_CONFIG_IMPORT
#endif
#ifndef _T3_BOOL
#define _T3_BOOL
/** Values for @c t3_bool, a boolean type that does not clash with C++ or C99 bool. @ingroup t3config_other */
enum {
t3_false, /**< False */
t3_true /**< True */
};
/** A boolean type that does not clash with C++ or C99 bool. @ingroup t3config_other */
typedef char t3_bool;
#endif
#endif