UniMRCP  1.3.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
apt.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2014 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  * $Id: apt.h 2136 2014-07-04 06:33:36Z achaloyan@gmail.com $
17  */
18 
19 #ifndef APT_H
20 #define APT_H
21 
22 /**
23  * @file apt.h
24  * @brief APR Toolkit Definitions
25  */
26 
27 #include <apr.h>
28 #include <apr_pools.h>
29 #include <apr_strings.h>
30 
31 #ifdef __cplusplus
32 /** Begin of extern "C" block */
33 #define APT_BEGIN_EXTERN_C extern "C" {
34 /** End of extern "C" block */
35 #define APT_END_EXTERN_C }
36 #else
37 /** Begin of extern "C" block */
38 #define APT_BEGIN_EXTERN_C
39 /** End of extern "C" block */
40 #define APT_END_EXTERN_C
41 #endif
42 
43 /** Lib export/import defines (win32) */
44 #ifdef WIN32
45 #ifdef APT_STATIC_LIB
46 #define APT_DECLARE(type) type __stdcall
47 #else
48 #ifdef APT_LIB_EXPORT
49 #define APT_DECLARE(type) __declspec(dllexport) type __stdcall
50 #else
51 #define APT_DECLARE(type) __declspec(dllimport) type __stdcall
52 #endif
53 #endif
54 #else
55 #define APT_DECLARE(type) type
56 #endif
57 
58 /** Boolean value */
59 typedef int apt_bool_t;
60 
61 #endif /* APT_H */