#ifndef NDBGLOBAL_H #define NDBGLOBAL_H #include #if defined(_WIN32) || defined(_WIN64) || defined(__WIN32__) || defined(WIN32) #define NDB_WIN32 #else #undef NDB_WIN32 #endif #include #include #include #include #ifdef HAVE_STDARG_H #include #endif #ifdef TIME_WITH_SYS_TIME #include #endif #ifdef HAVE_FCNTL_H #include #endif #include #ifdef HAVE_SYS_STAT_H #include #endif #include #ifdef HAVE_SYS_WAIT_H #include #endif #ifdef HAVE_SYS_MMAN_H #include #endif #ifdef NDB_WIN32 #include #include #define DIR_SEPARATOR "\\" #define PATH_MAX 256 #pragma warning(disable: 4503 4786) #else #define DIR_SEPARATOR "/" #endif static const char table_name_separator = '/'; #ifdef NDB_VC98 #define STATIC_CONST(x) enum { x } #else #define STATIC_CONST(x) static const Uint32 x #endif #ifdef __cplusplus #include #endif #ifdef __cplusplus extern "C" { #endif #include #ifndef HAVE_STRDUP extern char * strdup(const char *s); #endif #ifndef HAVE_STRLCPY extern size_t strlcpy (char *dst, const char *src, size_t dst_sz); #endif #ifndef HAVE_STRLCAT extern size_t strlcat (char *dst, const char *src, size_t dst_sz); #endif #ifndef HAVE_STRCASECMP extern int strcasecmp(const char *s1, const char *s2); extern int strncasecmp(const char *s1, const char *s2, size_t n); #endif #ifdef __cplusplus } #endif #endif