/* */ #ifndef D_COMMON_H #define D_COMMON_H #ifdef __MINGW32__ # undef SIZE_MAX # ifndef _OFF_T_ # define _OFF_T_ typedef long long _off_t; # ifndef _NO_OLDNAMES typedef _off_t off_t; # endif // !_NO_OLDNAMES # endif // !_OFF_T_ #endif // __MINGW32__ #ifdef HAVE_CONFIG_H # include "config.h" #endif #ifdef __MINGW32__ #ifdef malloc # undef malloc #endif #ifdef realloc # undef realloc #endif #endif // __MINGW32__ #ifdef __MINGW32__ # define WIN32_LEAN_AND_MEAN # ifndef WINVER # define WINVER 0x501u # endif // WINVER # include #endif // __MINGW32__ #ifdef ENABLE_NLS // If we put #include outside of #ifdef ENABLE_NLS and // --disable-nls is used, gettext(msgid) is defined as ((const char *) // (Msgid)). System header includes libintl.h regardless of // --disable-nls. For example, #include will include // libintl.h through include chain. Since libintl.h refers gettext and // it is defined as non-function form, this causes compile error. User // reported gcc-4.2.2 has this problem. But gcc-4.4.5 does not suffer // from this problem. # include # define _(String) gettext(String) #else // ENABLE_NLS # define _(String) String #endif // use C99 limit macros #define __STDC_LIMIT_MACROS // included here for compatibility issues with old compiler/libraries. #include #endif // D_COMMON_H