UniMRCP  1.7.0
apt.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2015 Arsen Chaloyan
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef APT_H
18 #define APT_H
19 
20 /**
21  * @file apt.h
22  * @brief APR Toolkit Definitions
23  */
24 
25 #include <apr.h>
26 #include <apr_pools.h>
27 #include <apr_strings.h>
28 
29 #ifdef __cplusplus
30 /** Begin of extern "C" block */
31 #define APT_BEGIN_EXTERN_C extern "C" {
32 /** End of extern "C" block */
33 #define APT_END_EXTERN_C }
34 #else
35 /** Begin of extern "C" block */
36 #define APT_BEGIN_EXTERN_C
37 /** End of extern "C" block */
38 #define APT_END_EXTERN_C
39 #endif
40 
41 /** Lib export/import defines (win32) */
42 #ifdef WIN32
43 #ifdef APT_STATIC_LIB
44 #define APT_DECLARE(type) type __stdcall
45 #else
46 #ifdef APT_LIB_EXPORT
47 #define APT_DECLARE(type) __declspec(dllexport) type __stdcall
48 #else
49 #define APT_DECLARE(type) __declspec(dllimport) type __stdcall
50 #endif
51 #endif
52 #else
53 #define APT_DECLARE(type) type
54 #endif
55 
56 /** Boolean value */
57 typedef int apt_bool_t;
58 
59 #endif /* APT_H */
int apt_bool_t
Definition: apt.h:57