8 #ifndef COV_WINCOMPAT_H
9 #define COV_WINCOMPAT_H
15 #ifndef WINCOMPATINLINE
17 #define WINCOMPATINLINE inline
19 #define WINCOMPATINLINE static
23 #if defined(_WIN32) || defined(_WIN64)
25 #if !defined(__MINGW32__)
29 #ifndef WIN32_LEAN_AND_MEAN
30 #define WIN32_LEAN_AMD_MEAN
32 #undef WIN32_LEAN_AMD_MEAN
37 #include <sys/types.h>
38 #include <sys/timeb.h>
45 static char fullPath[MAX_PATH];
46 static char dummystr[] =
".";
48 char *retval = dummystr;
49 if (GetFullPathName(pathptr, MAX_PATH, fullPath, &filebn) != 0)
58 #if !defined(__MINGW32__)
61 return stricmp(s1, s2);
75 #if !defined(__MINGW32__)
78 return strnicmp(s1, s2, n);
86 result = _vsnprintf(str, size, format, ap);
93 #if defined(_MSC_VER) && (_MSC_VER < 1020)
96 int result = _vsnprintf(str, size, format, ap);
102 #if defined(__MINGW32__)
103 #include <sys/time.h>
113 struct __timeb64 currentTime;
116 _ftime64(¤tTime);
118 _ftime64_s(¤tTime);
120 tv->tv_sec = (long)currentTime.time;
121 tv->tv_usec = (
long)currentTime.millitm * 1000;
129 #include <sys/time.h>
132 #if defined(_WIN32) || defined(__hpux)
139 while (*s1 && strchr(s2, *s1))
144 while (*s1 && !strchr(s2, *s1))
153 #if !defined(__linux__) && !defined(__APPLE__)
167 const char *d = delim;
186 #if defined(__APPLE__)
189 return lseek(fildes, offset, whence);
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat s1
Definition: khronos-glext.h:13144
GLdouble s
Definition: khronos-glext.h:6441
WINCOMPATINLINE char * strsep(char **s, const char *delim)
Definition: unixcompat.h:154
#define NULL
Definition: covise_list.h:22
GLdouble n
Definition: khronos-glext.h:8447
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
GLuint start
Definition: khronos-glext.h:6343
static const int s2
Definition: SammConv.cpp:38
GLsizeiptr size
Definition: khronos-glext.h:6610
GLintptr offset
Definition: khronos-glext.h:6611
#define WINCOMPATINLINE
Definition: unixcompat.h:19
GLfloat GLfloat p
Definition: khronos-glext.h:9861
GLbyte GLbyte tz
Definition: khronos-glext.h:9715
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: khronos-glext.h:6344
GLuint64EXT * result
Definition: khronos-glext.h:12573