Browse Source

STARPU_HAVE_WINDOWS is an empty macro

Samuel Thibault 12 years ago
parent
commit
f9e85a2c2c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core/disk_ops/unistd/disk_unistd_global.c

+ 2 - 2
src/core/disk_ops/unistd/disk_unistd_global.c

@@ -26,7 +26,7 @@
 #include <core/perfmodel/perfmodel.h>
 #include <core/disk_ops/unistd/disk_unistd_global.h>
 
-#if STARPU_HAVE_WINDOWS
+#ifdef STARPU_HAVE_WINDOWS
         #include <io.h>
 #endif
 
@@ -52,7 +52,7 @@ starpu_unistd_global_alloc (struct starpu_unistd_global_obj * obj, void *base, s
 	strcat(baseCpy,template);
 #ifdef STARPU_LINUX_SYS
 	id = mkostemp(baseCpy, obj->flags);
-#elif STARPU_HAVE_WINDOWS
+#elif defined(STARPU_HAVE_WINDOWS)
 	/* size in windows is a multiple of char */
 	_mktemp(baseCpy);
 	id = open(baseCpy, obj->flags);