libt3key
Main Page
Modules
All
Data Structures
Functions
Variables
Typedefs
Enumerator
Modules
src
key_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_KEY_API_H
15
#define T3_KEY_API_H
16
17
#if defined(_WIN32) || defined(__CYGWIN__)
18
#define T3_KEY_EXPORT __declspec(dllexport)
19
#define T3_KEY_IMPORT __declspec(dllimport)
20
#define T3_KEY_LOCAL
21
#else
22
#if __GNUC__ >= 4 || defined(__clang__)
23
#define T3_KEY_EXPORT __attribute__((visibility("default")))
24
#define T3_KEY_IMPORT __attribute__((visibility("default")))
25
#define T3_KEY_LOCAL __attribute__((visibility("hidden")))
26
#else
27
#define T3_KEY_EXPORT
28
#define T3_KEY_IMPORT
29
#define T3_KEY_LOCAL
30
#endif
31
#endif
32
33
#ifdef T3_KEY_BUILD_DSO
34
#define T3_KEY_API T3_KEY_EXPORT
35
#else
36
#define T3_KEY_API T3_KEY_IMPORT
37
#endif
38
39
#ifndef _T3_BOOL
40
#define _T3_BOOL
41
42
enum
{
43
t3_false
,
44
t3_true
45
};
47
typedef
char
t3_bool
;
48
#endif
49
50
#endif
t3_bool
char t3_bool
A boolean type that does not clash with C++ or C99 bool.
Definition:
key_api.h:47
t3_false
False.
Definition:
key_api.h:43
t3_true
True.
Definition:
key_api.h:44
Generated on Thu Feb 12 2015 08:06:09 for libt3key by
1.8.8