Revert modifications for Fedora compatibility due to stability problems.
[synfig.git] / ETL / trunk / ETL / etl_config.h
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 #ifdef  WIN32
14 #define ETL_DIRECTORY_SEPARATOR         '\\'
15 #else
16 #define ETL_DIRECTORY_SEPARATOR         '/'
17 #endif
18
19 #ifndef ETL_FLAG_NONAMESPACE
20 # define _ETL                                   ETL_NAMESPACE
21 # define _ETL_BEGIN_NAMESPACE   namespace _ETL {
22 # define _ETL_END_NAMESPACE             };
23 # define _STD_BEGIN_NAMESPACE   namespace std {
24 # define _STD_END_NAMESPACE             };
25 #else
26 # define _ETL
27 # define _ETL_BEGIN_NAMESPACE
28 # define _ETL_END_NAMESPACE
29 # define _STD_BEGIN_NAMESPACE
30 # define _STD_END_NAMESPACE
31 #endif
32
33 #define _ETL_BEGIN_CDECLS               extern "C" {
34 #define _ETL_END_CDECLS                 }
35
36 #ifdef _REENTRANT
37 #define ETL_REENTRANT   1
38 #endif
39
40 /* If __FUNC__ is not defined,
41 ** try to define it. If we cannot,
42 ** then just leave it undefined.
43 */
44 #ifndef __FUNC__
45 /*
46  * # if defined __cplusplus ? __GNUC_PREREQ (2, 6) : __GNUC_PREREQ (2, 4)
47 #   define __FUNC__     __PRETTY_FUNCTION__
48 # else
49 #  if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
50 #   define __FUNC__     __func__
51 #  endif
52 # endif
53 */
54 #endif
55
56 #ifdef __GNUG__
57 #define ETL_DEPRECATED_FUNCTION         __attribute__ ((deprecated))
58 #else
59 #define ETL_DEPRECATED_FUNCTION
60 #endif
61
62 #ifndef NULL
63 #define NULL    0
64 #endif
65
66 #endif