Merge pull request #910 from bhaible/support-msvc-with-autoconf

Support MSVC in packages that use GNU Autoconf.
This commit is contained in:
Eric Hawicz
2026-01-09 23:18:40 -05:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ typedef unsigned __int64 uint64_t;
#endif
#if defined(_MSC_VER)
#if defined(_MSC_VER) && !defined(ssize_t)
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#endif

View File

@@ -28,7 +28,7 @@ struct json_object;
#include <unistd.h>
#endif /* HAVE_UNISTD_H */
#ifdef _MSC_VER
#if defined(_MSC_VER) && !defined(ssize_t)
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#endif