#include <string.h>
#ifdef __MINGW32__
-#include <windows.h>
-#include <wdm.h>
#include <winsock2.h>
+#include <windows.h>
#else
#include <netdb.h>
#include <netinet/in.h>
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;
* @note W3_Get_Version を使用することを検討してください。
*
*/
-#define LIBW3_VERSION "2.22C" \
+#define LIBW3_VERSION "2.22D" \
SUFFIX
ifdef({{HTTP_SUPPORT}}, {{/**