11 #ifndef COV_WINCOMPAT_H
12 #define COV_WINCOMPAT_H
18 #ifndef WINCOMPATINLINE
20 #define WINCOMPATINLINE inline
22 #define WINCOMPATINLINE static
26 #if defined(_WIN32) || defined(_WIN64)
28 #if !defined(__MINGW32__)
32 inline int isnan(
double X){
return _isnan(X);};
33 inline int isinf(
double X){
return !_finite(X);};
34 inline int finite(
double X){
return _finite(X);};
38 #ifndef WIN32_LEAN_AND_MEAN
39 #define WIN32_LEAN_AMD_MEAN
41 #undef WIN32_LEAN_AMD_MEAN
46 #include <sys/types.h>
47 #include <sys/timeb.h>
54 static char fullPath[MAX_PATH];
55 static char dummystr[] =
".";
57 char *retval = dummystr;
58 if (GetFullPathName(pathptr, MAX_PATH, fullPath, &filebn) != 0)
67 #if !defined(__MINGW32__)
70 return stricmp(s1, s2);
84 #if !defined(__MINGW32__)
87 return strnicmp(s1, s2, n);
90 #if defined(_MSC_VER) && (_MSC_VER < 1900)
96 result = _vsnprintf(str, size, format, ap);
104 #if defined(_MSC_VER) && (_MSC_VER < 1020)
107 int result = _vsnprintf(str, size, format, ap);
108 str[size - 1] =
'\0';
113 #if defined(__MINGW32__)
114 #include <sys/time.h>
127 struct __timeb64 currentTime;
130 _ftime64(¤tTime);
132 _ftime64_s(¤tTime);
134 tv->tv_sec = (long)currentTime.time;
135 tv->tv_usec = (
long)currentTime.millitm * 1000;
143 #include <sys/time.h>
146 #if defined(_WIN32) || defined(__hpux)
153 while (*s1 && strchr(s2, *s1))
158 while (*s1 && !strchr(s2, *s1))
167 #if !defined(__linux__) && !defined(__APPLE__)
181 const char *d = delim;
200 #if defined(__APPLE__)
203 return lseek(fildes, offset, whence);
GLsizeiptr size
Definition: khronos-glext.h:6610
GLintptr offset
Definition: khronos-glext.h:6611
#define WINCOMPATINLINE
Definition: unixcompat.h:22
static const int s2
Definition: SammConv.cpp:38
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
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:168
GLdouble n
Definition: khronos-glext.h:8447
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
GLuint start
Definition: khronos-glext.h:6343
#define NULL
Definition: covise_list.h:22