From: Thomas Faber Date: Sun, 18 Oct 2015 08:32:42 +0000 (+0000) Subject: [LIBXML] X-Git-Tag: ReactOS-0.4.0~467 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=7e0e34055450f3d6077f7079f23171dcffcea6b0;ds=inline [LIBXML] - Fix MSVC incompatible declaration warning - Silence MSVC unused variable warnings - Get config.h slightly more in sync with upstream svn path=/trunk/; revision=69588 --- diff --git a/reactos/lib/3rdparty/libxml2/CMakeLists.txt b/reactos/lib/3rdparty/libxml2/CMakeLists.txt index a7dcbc207cf..2e12f74ebe7 100644 --- a/reactos/lib/3rdparty/libxml2/CMakeLists.txt +++ b/reactos/lib/3rdparty/libxml2/CMakeLists.txt @@ -68,7 +68,8 @@ add_pch(libxml2 libxml.h SOURCE) add_dependencies(libxml2 psdk) if(MSVC) - replace_compile_flags("/we4189" " ") + # Formal parameter different from declaration + add_target_compile_flags(libxml2 "/wd4101") else() add_target_compile_flags(libxml2 "-w") endif() diff --git a/reactos/lib/3rdparty/libxml2/config.h b/reactos/lib/3rdparty/libxml2/config.h index 37ed5d64751..98181391385 100644 --- a/reactos/lib/3rdparty/libxml2/config.h +++ b/reactos/lib/3rdparty/libxml2/config.h @@ -1,6 +1,9 @@ /* config.h. Generated from config.h.in by configure. */ /* config.h.in. Generated from configure.in by autoheader. */ +/* Type cast for the gethostbyname() argument */ +#define GETHOSTBYNAME_ARG_CAST + /* Define to 1 if you have the header file. */ /* #undef HAVE_ANSIDECL_H */ @@ -297,12 +300,18 @@ /* Define to the version of this package. */ #define PACKAGE_VERSION "" +/* Type cast for the send() function 2nd arg */ +#define SEND_ARG2_CAST + /* Define to 1 if you have the ANSI C header files. */ #define STDC_HEADERS 1 /* Support for IPv6 */ /* #undef SUPPORT_IP6 */ +/* Define if va_list is an array type */ +/* #undef VA_LIST_IS_ARRAY */ + /* Version number of package */ #define VERSION "2.9.2" @@ -317,7 +326,6 @@ /* Using the Win32 Socket implementation */ //#define _WINSOCKAPI_ 1 - /* ss_family is not defined here, use __ss_family instead */ /* #undef ss_family */ @@ -325,21 +333,15 @@ such a type exists and the standard includes do not define it. */ /* #undef uint32_t */ -#if defined(_MSC_VER) -#define GetModuleHandleA GetModuleHandleA_ -#endif +#ifdef __REACTOS__ #if defined(__MINGW32__) //#include #define WIN32_NO_STATUS +#define _WINDOWS_ #define _INC_WINDOWS #define COM_NO_WINDOWS_H #include #include #include #endif -#if defined(_MSC_VER) -#undef GetModuleHandleA #endif - -#define SEND_ARG2_CAST -#define GETHOSTBYNAME_ARG_CAST