From 5809029cb1fddf12726ab6aa557610234358e940 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 11 Dec 2023 21:53:59 +0000 Subject: windows: minor compat header fixes - posix_win.c: use `snprintf` as-is with _MSC_VER >= 1900 - stdio.h: include socket header before windows.h - pthread.h: delete exec permission from source file --- include/compat/pthread.h | 0 include/compat/stdio.h | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 include/compat/pthread.h (limited to 'include') diff --git a/include/compat/pthread.h b/include/compat/pthread.h old mode 100755 new mode 100644 diff --git a/include/compat/stdio.h b/include/compat/stdio.h index d5725c9..1874aa5 100644 --- a/include/compat/stdio.h +++ b/include/compat/stdio.h @@ -42,7 +42,7 @@ int posix_rename(const char *oldpath, const char *newpath); #define rename(oldpath, newpath) posix_rename(oldpath, newpath) #endif -#ifdef _MSC_VER +#if defined(_MSC_VER) && _MSC_VER < 1900 #define snprintf _snprintf #endif -- cgit v1.2.3-55-g6feb