|
@@ -20,11 +20,12 @@
|
|
|
|
|
|
#ifdef STARPU_HAVE_WINDOWS
|
|
#ifdef STARPU_HAVE_WINDOWS
|
|
#include <io.h>
|
|
#include <io.h>
|
|
|
|
+#include <fcntl.h>
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#define STRING "booh"
|
|
#define STRING "booh"
|
|
|
|
|
|
-int _check_number(double val, int nan)
|
|
|
|
|
|
+int _check_number(double val, int checknan)
|
|
{
|
|
{
|
|
char *tmp = "starpu_XXXXXX";
|
|
char *tmp = "starpu_XXXXXX";
|
|
char *filename = malloc(100);
|
|
char *filename = malloc(100);
|
|
@@ -33,7 +34,7 @@ int _check_number(double val, int nan)
|
|
strcpy(filename, tmp);
|
|
strcpy(filename, tmp);
|
|
#ifdef STARPU_HAVE_WINDOWS
|
|
#ifdef STARPU_HAVE_WINDOWS
|
|
_mktemp(filename);
|
|
_mktemp(filename);
|
|
- id = open(filename, O_RDWR);
|
|
|
|
|
|
+ id = open(filename, _O_RDWR);
|
|
#else
|
|
#else
|
|
id = mkstemp(filename);
|
|
id = mkstemp(filename);
|
|
|
|
|
|
@@ -71,7 +72,7 @@ int _check_number(double val, int nan)
|
|
int pass;
|
|
int pass;
|
|
pass = (x == 1) && (y == 1);
|
|
pass = (x == 1) && (y == 1);
|
|
pass = pass && strcmp(str, STRING) == 0;
|
|
pass = pass && strcmp(str, STRING) == 0;
|
|
- if (nan)
|
|
|
|
|
|
+ if (checknan)
|
|
pass = pass && isnan(val) && isnan(lat);
|
|
pass = pass && isnan(val) && isnan(lat);
|
|
else
|
|
else
|
|
pass = pass && lat == val;
|
|
pass = pass && lat == val;
|