From 529f90ddd8f95664e53a818536f093f2d936bd44 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 11 Dec 2023 21:53:59 +0000 Subject: [PATCH] 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 --- crypto/compat/posix_win.c | 2 +- include/compat/pthread.h | 0 include/compat/stdio.h | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) mode change 100755 => 100644 include/compat/pthread.h diff --git a/crypto/compat/posix_win.c b/crypto/compat/posix_win.c index b3a4687212..c7cf6af3d8 100644 --- a/crypto/compat/posix_win.c +++ b/crypto/compat/posix_win.c @@ -9,8 +9,8 @@ #define NO_REDEF_POSIX_FUNCTIONS -#include #include +#include #include #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 d5725c9ac9..1874aa5ebd 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