changeset 765:001d77a720ce

MinGW fixes
author Chris Cannam
date Mon, 25 Mar 2013 12:15:07 +0000
parents b6bb0ecb7958
children 2444ef08b7eb
files data/fileio/test/test.pro system/System.cpp system/System.h
diffstat 3 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/data/fileio/test/test.pro	Sat Mar 09 11:45:15 2013 +0000
+++ b/data/fileio/test/test.pro	Mon Mar 25 12:15:07 2013 +0000
@@ -36,5 +36,5 @@
     }
 }
 
-win32:QMAKE_POST_LINK=.$${TARGET}.exe
+win32:QMAKE_POST_LINK=./release/$${TARGET}.exe
 
--- a/system/System.cpp	Sat Mar 09 11:45:15 2013 +0000
+++ b/system/System.cpp	Mon Mar 25 12:15:07 2013 +0000
@@ -56,10 +56,12 @@
 
 extern "C" {
 
+/* usleep is now in mingw
 void usleep(unsigned long usec)
 {
     ::Sleep(usec / 1000);
 }
+*/
 
 int gettimeofday(struct timeval *tv, void *tz)
 {
--- a/system/System.h	Sat Mar 09 11:45:15 2013 +0000
+++ b/system/System.h	Mon Mar 25 12:15:07 2013 +0000
@@ -57,12 +57,14 @@
 #define getpid _getpid
 
 extern "C" {
+/* usleep is now in mingw
 void usleep(unsigned long usec);
+*/
 int gettimeofday(struct timeval *p, void *tz);
 }
 
-#define ISNAN _isnan
-#define ISINF _isinf
+#define ISNAN std::isnan
+#define ISINF std::isinf
 
 #else