40 #ifndef GFLAGS_WINDOWS_PORT_H_ 41 #define GFLAGS_WINDOWS_PORT_H_ 47 # if !defined(_WIN32_WINNT) && !(defined( __MINGW32__) || defined(__MINGW64__)) 48 # define _WIN32_WINNT 0x0400 51 #ifndef WIN32_LEAN_AND_MEAN 52 # define WIN32_LEAN_AND_MEAN 65 #if !defined(__MINGW32__) && !defined(__MINGW64__) 66 #if !(defined(_MSC_VER) && _MSC_VER >= 1900) 70 const char *
format, va_list ap);
71 #define vsnprintf(str, size, format, ap) safe_vsnprintf(str, size, format, ap) 72 #define va_copy(dst, src) (dst) = (src) 77 # pragma warning(push) 78 # pragma warning(disable: 4996) // ignore getenv security warning 86 static const char*
const kFakeZero =
"0";
91 const size_t nameval_len = strlen(name) + 1 + strlen(value) + 1;
92 char* nameval =
reinterpret_cast<char*
>(
malloc(nameval_len));
93 snprintf(nameval, nameval_len,
"%s=%s", name, value);
95 if (value == kFakeZero) {
96 nameval[nameval_len - 2] =
'\0';
97 if (*getenv(name) !=
'\0')
102 # pragma warning(pop) 105 #define strcasecmp _stricmp 107 #if defined(_MSC_VER) && _MSC_VER >= 1400 108 #define strdup _strdup 109 #define unlink _unlink 114 #define PRId64 "I64d" 115 #define PRIu64 "I64u" 117 #if !defined(__MINGW32__) && !defined(__MINGW64__) 118 #define strtoq _strtoi64 119 #define strtouq _strtoui64 120 #define strtoll _strtoi64 121 #define strtoull _strtoui64 122 #define atoll _atoi64 126 #define PATH_MAX 1024 EGLStreamKHR EGLint EGLint EGLint size
Definition: eglext.h:984
GLint GLint GLint GLsizei GLsizei GLenum format
Definition: gl2.h:403
int GFLAGS_DLL_DECL safe_vsnprintf(char *str, size_t size, const char *format, va_list ap)
Definition: windows_port.cc:53
EGLAttrib * value
Definition: eglext.h:120
GFLAGS_DLL_DECL int snprintf(char *str, size_t size, const char *format,...)
Definition: windows_port.cc:63
void setenv(const char *name, const char *value, int)
Definition: windows_port.h:80
EGLImageKHR EGLint * name
Definition: eglext.h:851
#define GFLAGS_DLL_DECL
Definition: gflags_declare.h:53
#define malloc
Definition: mbmalloc.h:49
str
Definition: make-dist.py:305