#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
-#ifdef _MSC_VER
+#ifdef _WIN32
#include <io.h>
#include <windows.h>
#else
dirname = asprintf_safe("%s/%s", parent, path);
assert(dirname);
-#ifdef _MSC_VER
+#ifdef _WIN32
err = _mkdir(dirname);
#else
err = mkdir(dirname, 0777);
char *
test_maketempdir(const char *template)
{
-#ifdef _MSC_VER
+#ifdef _WIN32
const char *basetmp = getenv("TMP");
if (basetmp == NULL) {
basetmp = getenv("TEMP");