From e2a31b9657255514774c3c5be3f4046a0417f75c Mon Sep 17 00:00:00 2001 From: nishi Date: Sun, 7 Apr 2024 14:06:09 +0000 Subject: [PATCH] fixing git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@290 d27a3e52-49c5-7645-884c-6793ebffc270 --- Library/FTP.c | 2 +- Library/Util.c | 11 +++++------ W3Version.h.m4 | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Library/FTP.c b/Library/FTP.c index 833cdfc..9dfe6af 100644 --- a/Library/FTP.c +++ b/Library/FTP.c @@ -40,8 +40,8 @@ #include #ifdef __MINGW32__ -#include #include +#include #else #include #include diff --git a/Library/Util.c b/Library/Util.c index 979eda1..13fcb37 100644 --- a/Library/Util.c +++ b/Library/Util.c @@ -40,9 +40,8 @@ #include #ifdef __MINGW32__ -#include -#include #include +#include #else #include #include @@ -151,10 +150,10 @@ bool __W3_Have_Header(struct W3* w3, const char* name) { char* __W3_Get_Platform(void) { #ifdef __MINGW32__ - RTL_OSVERSIONINFOEXW info; - ZeroMemory(&info, sizeof(RTL_OSVERSIONINFOEXW)); - info.dwOSVersionInfoSize = sizeof(RTL_OSVERSIONINFOEXW); - RtlGetVersion(&info); + OSVERSIONINFOA info; + ZeroMemory(&info, sizeof(OSVERSIONINFOA)); + info.dwOSVersionInfoSize = sizeof(OSVERSIONINFOA); + GetVersionEx(&info); char* result = malloc(33); sprintf(result, "Windows %lu.%lu.%lu", info.dwMajorVersion, info.dwMinorVersion, info.dwBuildNumber); return result; diff --git a/W3Version.h.m4 b/W3Version.h.m4 index f2a3066..30f5f85 100644 --- a/W3Version.h.m4 +++ b/W3Version.h.m4 @@ -60,7 +60,7 @@ const char* W3_Get_Version(void); * @note W3_Get_Version を使用することを検討してください。 * */ -#define LIBW3_VERSION "2.22C" \ +#define LIBW3_VERSION "2.22D" \ SUFFIX ifdef({{HTTP_SUPPORT}}, {{/** -- 2.43.0