- Fix MSVC incompatible declaration warning
- Silence MSVC unused variable warnings
- Get config.h slightly more in sync with upstream

svn path=/trunk/; revision=69588
This commit is contained in:
Thomas Faber 2015-10-18 08:32:42 +00:00
parent f44a30ed3e
commit 7e0e340554
2 changed files with 13 additions and 10 deletions

View file

@ -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()

View file

@ -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 <ansidecl.h> 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 <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
#if defined(_MSC_VER)
#undef GetModuleHandleA
#endif
#define SEND_ARG2_CAST
#define GETHOSTBYNAME_ARG_CAST