Selaa lähdekoodia

More windows fixes

Samuel Thibault 11 vuotta sitten
vanhempi
commit
5932d9cd38
2 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 0
      src/common/utils.c
  2. 0 2
      src/top/starpu_top_connection.c

+ 3 - 0
src/common/utils.c

@@ -26,6 +26,9 @@
 #include <io.h>
 #include <sys/locking.h>
 #define mkdir(path, mode) mkdir(path)
+#if !defined(__MINGW32__)
+#define ftruncate(fd, length) _chsize(fd, length)
+#endif
 #endif
 
 #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)

+ 0 - 2
src/top/starpu_top_connection.c

@@ -15,8 +15,6 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#define WINVER WindowsXP
-
 #include <starpu_config.h>
 
 #ifdef __MINGW__