summaryrefslogtreecommitdiff
path: root/src/windows/port.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/windows/port.h')
-rwxr-xr-xsrc/windows/port.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/windows/port.h b/src/windows/port.h
index c9be748..24d7677 100755
--- a/src/windows/port.h
+++ b/src/windows/port.h
@@ -62,6 +62,8 @@
* used by both C and C++ code, so we put all the C++ together.
*/
+#ifdef _MSC_VER
+
/* 4244: otherwise we get problems when substracting two size_t's to an int
* 4251: it's complaining about a private struct I've chosen not to dllexport
* 4355: we use this in a constructor, but we do it safely
@@ -127,6 +129,8 @@ extern int safe_vsnprintf(char *str, size_t size,
typedef int pid_t;
#define getpid _getpid
+#endif // _MSC_VER
+
// ----------------------------------- THREADS
typedef DWORD pthread_t;
typedef DWORD pthread_key_t;