diff system/System.h @ 1232:f350af2b542d project-file-rework

More Windows build bits
author Chris Cannam
date Thu, 27 Oct 2016 10:29:44 +0100
parents 794b64e62e58
children 91231350ee22
line wrap: on
line diff
--- a/system/System.h	Tue Oct 25 21:06:38 2016 +0100
+++ b/system/System.h	Thu Oct 27 10:29:44 2016 +0100
@@ -64,12 +64,15 @@
 typedef SSIZE_T ssize_t;
 #endif
 
+#ifdef _MSC_VER
 extern "C" {
-
-#ifdef _MSC_VER
 void usleep(unsigned long usec);
+}
+#else
+#include <unistd.h>
 #endif
 
+extern "C" {
 int gettimeofday(struct timeval *p, void *tz);
 }