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