ETL  0.04.19
etl_config.h
Go to the documentation of this file.
1 
2 
3 #ifndef __ETL_CONFIG_H
4 #define __ETL_CONFIG_H
5 
6 #include "etl_profile.h"
7 #include <utility>
8 
9 #ifndef ETL_NAMESPACE
10 # define ETL_NAMESPACE etl
11 #endif
12 
13 #define ETL_DIRECTORY_SEPARATOR0 '/'
14 #define ETL_DIRECTORY_SEPARATOR1 '\\'
15 
16 //#ifdef WIN32
17 //#define ETL_DIRECTORY_SEPARATOR ETL_DIRECTORY_SEPARATOR1
18 //#else
19 #define ETL_DIRECTORY_SEPARATOR ETL_DIRECTORY_SEPARATOR0
20 //#endif
21 
22 #ifndef ETL_FLAG_NONAMESPACE
23 # define _ETL ETL_NAMESPACE
24 # define _ETL_BEGIN_NAMESPACE namespace _ETL {
25 # define _ETL_END_NAMESPACE };
26 # define _STD_BEGIN_NAMESPACE namespace std {
27 # define _STD_END_NAMESPACE };
28 #else
29 # define _ETL
30 # define _ETL_BEGIN_NAMESPACE
31 # define _ETL_END_NAMESPACE
32 # define _STD_BEGIN_NAMESPACE
33 # define _STD_END_NAMESPACE
34 #endif
35 
36 #define _ETL_BEGIN_CDECLS extern "C" {
37 #define _ETL_END_CDECLS }
38 
39 #ifdef _REENTRANT
40 #define ETL_REENTRANT 1
41 #endif
42 
43 /* If __FUNC__ is not defined,
44 ** try to define it. If we cannot,
45 ** then just leave it undefined.
46 */
47 #ifndef __FUNC__
48 /*
49  * # if defined __cplusplus ? __GNUC_PREREQ (2, 6) : __GNUC_PREREQ (2, 4)
50 # define __FUNC__ __PRETTY_FUNCTION__
51 # else
52 # if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
53 # define __FUNC__ __func__
54 # endif
55 # endif
56 */
57 #endif
58 
59 #ifdef __GNUG__
60 #define ETL_DEPRECATED_FUNCTION __attribute__ ((deprecated))
61 #else
62 #define ETL_DEPRECATED_FUNCTION
63 #endif
64 
65 #ifndef NULL
66 #define NULL 0
67 #endif
68 
69 #endif