]> git.meshlink.io Git - meshlink/blobdiff - src/xalloc.h
Initial support for CMake.
[meshlink] / src / xalloc.h
index 948723e30f5d7733eadaa167b92afe5d798d1098..53938ca3c07624663a4f4833241bf3b8ac97a7af 100644 (file)
@@ -64,7 +64,7 @@ static inline char *xstrdup(const char *s) {
 }
 
 static inline int xvasprintf(char **strp, const char *fmt, va_list ap) {
-#ifdef HAVE_MINGW
+#ifdef _WIN32
        char buf[1024];
        int result = vsnprintf(buf, sizeof(buf), fmt, ap);