diff options
author | Viktor Szakats <commit@vsz.me> | 2023-12-11 21:53:59 +0000 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2024-03-03 15:32:50 -0600 |
commit | 5809029cb1fddf12726ab6aa557610234358e940 (patch) | |
tree | babb0dcb877a5b783a1131f159aeda979696bc4f /include | |
parent | 4f0ae7a991e0770c922998d33c008d860e97288b (diff) | |
download | portable-5809029cb1fddf12726ab6aa557610234358e940.tar.gz portable-5809029cb1fddf12726ab6aa557610234358e940.tar.bz2 portable-5809029cb1fddf12726ab6aa557610234358e940.zip |
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
Diffstat (limited to 'include')
-rw-r--r--[-rwxr-xr-x] | include/compat/pthread.h | 0 | ||||
-rw-r--r-- | include/compat/stdio.h | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/include/compat/pthread.h b/include/compat/pthread.h index 1ab011c..1ab011c 100755..100644 --- a/include/compat/pthread.h +++ b/include/compat/pthread.h | |||
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); | |||
42 | #define rename(oldpath, newpath) posix_rename(oldpath, newpath) | 42 | #define rename(oldpath, newpath) posix_rename(oldpath, newpath) |
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | #ifdef _MSC_VER | 45 | #if defined(_MSC_VER) && _MSC_VER < 1900 |
46 | #define snprintf _snprintf | 46 | #define snprintf _snprintf |
47 | #endif | 47 | #endif |
48 | 48 | ||