[LIBXML]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 18 Oct 2015 08:32:42 +0000 (08:32 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 18 Oct 2015 08:32:42 +0000 (08:32 +0000)
- Fix MSVC incompatible declaration warning
- Silence MSVC unused variable warnings
- Get config.h slightly more in sync with upstream

svn path=/trunk/; revision=69588

reactos/lib/3rdparty/libxml2/CMakeLists.txt
reactos/lib/3rdparty/libxml2/config.h

index a7dcbc2..2e12f74 100644 (file)
@@ -68,7 +68,8 @@ add_pch(libxml2 libxml.h SOURCE)
 add_dependencies(libxml2 psdk)
 
 if(MSVC)
 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()
 else()
     add_target_compile_flags(libxml2 "-w")
 endif()
index 37ed5d6..9818139 100644 (file)
@@ -1,6 +1,9 @@
 /* config.h.  Generated from config.h.in by configure.  */
 /* config.h.in.  Generated from configure.in by autoheader.  */
 
 /* 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 <ansidecl.h> header file. */
 /* #undef HAVE_ANSIDECL_H */
 
 /* Define to 1 if you have the <ansidecl.h> header file. */
 /* #undef HAVE_ANSIDECL_H */
 
 /* Define to the version of this package. */
 #define PACKAGE_VERSION ""
 
 /* 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 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"
 
 /* Version number of package */
 #define VERSION "2.9.2"
 
 /* Using the Win32 Socket implementation */
 //#define _WINSOCKAPI_ 1
 
 /* Using the Win32 Socket implementation */
 //#define _WINSOCKAPI_ 1
 
-
 /* ss_family is not defined here, use __ss_family instead */
 /* #undef ss_family */
 
 /* ss_family is not defined here, use __ss_family instead */
 /* #undef ss_family */
 
    such a type exists and the standard includes do not define it. */
 /* #undef uint32_t */
 
    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 <windows.h>
 #define WIN32_NO_STATUS
 #if defined(__MINGW32__)
 //#include <windows.h>
 #define WIN32_NO_STATUS
+#define _WINDOWS_
 #define _INC_WINDOWS
 #define COM_NO_WINDOWS_H
 #include <stdarg.h>
 #include <windef.h>
 #include <winbase.h>
 #endif
 #define _INC_WINDOWS
 #define COM_NO_WINDOWS_H
 #include <stdarg.h>
 #include <windef.h>
 #include <winbase.h>
 #endif
-#if defined(_MSC_VER)
-#undef GetModuleHandleA
 #endif
 #endif
-
-#define SEND_ARG2_CAST
-#define GETHOSTBYNAME_ARG_CAST