X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2FETL%2Fetl_config.h;fp=ETL%2Ftrunk%2FETL%2Fetl_config.h;h=9bdcb9ebc960953adb2793a6550f241a52bbc105;hb=b3016b249333ac0ab0008d8c6c4d9029b2ff30c9;hp=0000000000000000000000000000000000000000;hpb=7f4273493da74d7d5746a65551e20c7786d0f155;p=synfig.git diff --git a/ETL/trunk/ETL/etl_config.h b/ETL/trunk/ETL/etl_config.h new file mode 100644 index 0000000..9bdcb9e --- /dev/null +++ b/ETL/trunk/ETL/etl_config.h @@ -0,0 +1,70 @@ + + +#ifndef __ETL_CONFIG_H +#define __ETL_CONFIG_H + +#include "etl_profile.h" +#include + +#ifndef ETL_NAMESPACE +# define ETL_NAMESPACE etl +#endif + +#if defined(WORDS_BIGENDIAN) && !defined(ETL_BIGENDIAN) +#define ETL_BIGENDIAN +#endif + +#ifdef WIN32 +#define ETL_DIRECTORY_SEPERATOR '\\' +#else +#define ETL_DIRECTORY_SEPERATOR '/' +#endif + +#ifndef ETL_FLAG_NONAMESPACE +# define _ETL ETL_NAMESPACE +# define _ETL_BEGIN_NAMESPACE namespace _ETL { +# define _ETL_END_NAMESPACE }; +# define _STD_BEGIN_NAMESPACE namespace std { +# define _STD_END_NAMESPACE }; +#else +# define _ETL +# define _ETL_BEGIN_NAMESPACE +# define _ETL_END_NAMESPACE +# define _STD_BEGIN_NAMESPACE +# define _STD_END_NAMESPACE +#endif + +#define _ETL_BEGIN_CDECLS extern "C" { +#define _ETL_END_CDECLS } + +#ifdef _REENTRANT +#define ETL_REENTRANT 1 +#endif + +/* If __FUNC__ is not defined, +** try to define it. If we cannot, +** then just leave it undefined. +*/ +#ifndef __FUNC__ +/* + * # if defined __cplusplus ? __GNUC_PREREQ (2, 6) : __GNUC_PREREQ (2, 4) +# define __FUNC__ __PRETTY_FUNCTION__ +# else +# if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L +# define __FUNC__ __func__ +# endif +# endif +*/ +#endif + +#ifdef __GNUG__ +#define ETL_DEPRECATED_FUNCTION __attribute__ ((deprecated)) +#else +#define ETL_DEPRECATED_FUNCTION +#endif + +#ifndef NULL +#define NULL 0 +#endif + +#endif