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