From da1bf51c71a6b3d243e4bf36243cd3cf72c0a975 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Mon, 24 Oct 2011 19:18:03 +0000 Subject: [PATCH] Remove trailing whitespace and don't define pid_t for MinGW --- src/xpdev/genwrap.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/xpdev/genwrap.h b/src/xpdev/genwrap.h index bc649806c6..33d8085525 100644 --- a/src/xpdev/genwrap.h +++ b/src/xpdev/genwrap.h @@ -60,7 +60,9 @@ #endif #elif defined(_WIN32) #include <process.h> /* getpid() */ - typedef DWORD pid_t; + #ifndef __MINGW32__ + typedef DWORD pid_t; + #endif #endif #if !defined(_WIN32) @@ -87,7 +89,7 @@ extern "C" { #if defined(__BORLANDC__) #define DESCRIBE_COMPILER(str) SAFEPRINTF2(str,"BCC %X.%02X" \ - ,__BORLANDC__>>8,__BORLANDC__&0xff); + ,__BORLANDC__>>8,__BORLANDC__&0xff); #elif defined(_MSC_VER) @@ -111,7 +113,7 @@ extern "C" { #elif defined(__DMC__) /* Digital Mars C/C++ */ #define DESCRIBE_COMPILER(str) SAFEPRINTF(str,"DMC %X.%02X" \ - ,__DMC__>>8,__DMC__&0xff); + ,__DMC__>>8,__DMC__&0xff); #else /* Unknown compiler */ @@ -317,7 +319,7 @@ DLLEXPORT int DLLCALL get_errno(void); #endif /* Win32 implementations of recursive (thread-safe) std C time functions on Unix */ -#if !defined(__unix__) +#if !defined(__unix__) DLLEXPORT char* DLLCALL strtok_r(char *str, const char *delim, char **last); #endif -- GitLab