#ifdef __MINGW32__
#include <windows.h>
+#include <wdm.h>
#include <winsock2.h>
#else
#include <netdb.h>
char* __W3_Get_Platform(void) {
#ifdef __MINGW32__
- OSVERSIONINFOEX info;
- ZeroMemory(&info, sizeof(OSVERSIONINFOEX));
- info.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
- GetVersionEx(&info);
+ RTL_OSVERSIONINFOEXW info;
+ ZeroMemory(&info, sizeof(RTL_OSVERSIONINFOEXW));
+ info.dwOSVersionInfoSize = sizeof(RTL_OSVERSIONINFOEXW);
+ RtlGetVersionEx(&info);
char* result = malloc(33);
- sprintf(result, "Windows %u.%u.%u", info.dwMajorVersion, info.dwMinorVersion, info.dwBuildNumber);
+ sprintf(result, "Windows %lu.%lu.%lu", info.dwMajorVersion, info.dwMinorVersion, info.dwBuildNumber);
return result;
#else
struct utsname un;
* @note W3_Get_Version を使用することを検討してください。
*
*/
-#define LIBW3_VERSION "2.22B" \
+#define LIBW3_VERSION "2.22C" \
SUFFIX
ifdef({{HTTP_SUPPORT}}, {{/**