VirtualBox

Changeset 104169 in vbox for trunk


Ignore:
Timestamp:
Apr 5, 2024 8:50:25 AM (10 months ago)
Author:
vboxsync
Message:

libxml2-2.9.14: Some .h fixes. bugref:10640

Location:
trunk/src/libs/libxml2-2.12.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/libxml2-2.12.6/include/libxml/xmlversion.h

    r104106 r104169  
    11/*
    2  * Summary: compile-time version informations
    3  * Description: compile-time version informations for the XML library
     2 * Summary: compile-time version information
     3 * Description: compile-time version information for the XML library
    44 *
    55 * Copy: See Copyright for the status of this software.
     
    2222 */
    2323#ifndef LIBXML2_COMPILING_MSCCDEF
    24 XMLPUBFUN void XMLCALL xmlCheckVersion(int version);
     24XMLPUBFUN void xmlCheckVersion(int version);
    2525#endif /* LIBXML2_COMPILING_MSCCDEF */
    2626
     
    3737 * the version number: 1.2.3 value is 10203
    3838 */
    39 #define LIBXML_VERSION 20914
     39#define LIBXML_VERSION 21206
    4040
    4141/**
     
    4444 * the version number string, 1.2.3 value is "10203"
    4545 */
    46 #define LIBXML_VERSION_STRING "20914"
     46#define LIBXML_VERSION_STRING "21206"
    4747
    4848/**
    4949 * LIBXML_VERSION_EXTRA:
    5050 *
    51  * extra version information, used to show a CVS compilation
    52  */
    53 #define LIBXML_VERSION_EXTRA "-GITCVE-2016-1834-21-g502f6a6"
     51 * extra version information, used to show a git commit description
     52 */
     53#define LIBXML_VERSION_EXTRA ""
    5454
    5555/**
     
    5959 * the version the software has been compiled against
    6060 */
    61 #define LIBXML_TEST_VERSION xmlCheckVersion(20914);
     61#define LIBXML_TEST_VERSION xmlCheckVersion(21206);
    6262
    6363#ifndef VMS
     
    9292 */
    9393#if 1
    94 #if defined(_REENTRANT) || defined(__MT__) || \
    95     (defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE - 0 >= 199506L))
    9694#define LIBXML_THREAD_ENABLED
    9795#endif
    98 #endif
    9996
    10097/**
     
    184181 * Whether the HTTP support is configured in
    185182 */
    186 #if 0
     183#if 1
    187184#define LIBXML_HTTP_ENABLED
    188185#endif
     
    211208 * Whether the deprecated APIs are compiled in for compatibility
    212209 */
    213 #if 1
     210#if 0
    214211#define LIBXML_LEGACY_ENABLED
    215212#endif
     
    234231
    235232/**
    236  * LIBXML_DOCB_ENABLED:
    237  *
    238  * Whether the SGML Docbook support is configured in
    239  */
    240 #if 1
    241 #define LIBXML_DOCB_ENABLED
    242 #endif
    243 
    244 /**
    245233 * LIBXML_XPATH_ENABLED:
    246234 *
     
    261249
    262250/**
     251 * LIBXML_XPTR_LOCS_ENABLED:
     252 *
     253 * Whether support for XPointer locations is configured in
     254 */
     255#if 0
     256#define LIBXML_XPTR_LOCS_ENABLED
     257#endif
     258
     259/**
    263260 * LIBXML_XINCLUDE_ENABLED:
    264261 *
     
    274271 * Whether iconv support is available
    275272 */
    276 #ifndef RT_OS_WINDOWS
     273#if 1
    277274#define LIBXML_ICONV_ENABLED
    278275#endif
     
    317314 * LIBXML_DEBUG_RUNTIME:
    318315 *
    319  * Whether the runtime debugging is configured in
     316 * Removed
    320317 */
    321318#if 0
     
    354351 *
    355352 * Whether the formal expressions interfaces are compiled in
    356  */
    357 #if 1
     353 *
     354 * This code is unused and disabled unconditionally for now.
     355 */
     356#if 0
    358357#define LIBXML_EXPR_ENABLED
    359358#endif
     
    382381 * Whether the module interfaces are compiled in
    383382 */
    384 #if 0
     383#if 1
    385384#define LIBXML_MODULES_ENABLED
    386385/**
     
    411410
    412411#ifdef __GNUC__
    413 #ifdef HAVE_ANSIDECL_H
    414 #include <ansidecl.h>
    415 #endif
    416 
    417 /**
    418  * ATTRIBUTE_UNUSED:
    419  *
    420  * Macro used to signal to GCC unused function parameters
    421  */
     412/** DOC_DISABLE */
    422413
    423414#ifndef ATTRIBUTE_UNUSED
     
    428419# endif
    429420#endif
    430 
    431 /**
    432  * LIBXML_ATTR_ALLOC_SIZE:
    433  *
    434  * Macro used to indicate to GCC this is an allocator function
    435  */
    436421
    437422#ifndef LIBXML_ATTR_ALLOC_SIZE
     
    445430#endif
    446431
    447 /**
    448  * LIBXML_ATTR_FORMAT:
    449  *
    450  * Macro used to indicate to GCC the parameter are printf like
    451  */
    452 
    453432#ifndef LIBXML_ATTR_FORMAT
    454433# if ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
     
    461440#endif
    462441
     442#ifndef XML_DEPRECATED
     443#  if defined (IN_LIBXML) || (__GNUC__ * 100 + __GNUC_MINOR__ < 301)
     444#    define XML_DEPRECATED
     445/* Available since at least GCC 3.1 */
     446#  else
     447#    define XML_DEPRECATED __attribute__((deprecated))
     448#  endif
     449#endif
     450
     451#if defined(__clang__) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 406)
     452  #if defined(__clang__) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 800)
     453    #define XML_IGNORE_FPTR_CAST_WARNINGS \
     454      _Pragma("GCC diagnostic push") \
     455      _Pragma("GCC diagnostic ignored \"-Wpedantic\"") \
     456      _Pragma("GCC diagnostic ignored \"-Wcast-function-type\"")
     457  #else
     458    #define XML_IGNORE_FPTR_CAST_WARNINGS \
     459      _Pragma("GCC diagnostic push") \
     460      _Pragma("GCC diagnostic ignored \"-Wpedantic\"")
     461  #endif
     462  #define XML_POP_WARNINGS \
     463    _Pragma("GCC diagnostic pop")
     464#else
     465  #define XML_IGNORE_FPTR_CAST_WARNINGS
     466  #define XML_POP_WARNINGS
     467#endif
     468
    463469#else /* ! __GNUC__ */
    464 /**
    465  * ATTRIBUTE_UNUSED:
    466  *
    467  * Macro used to signal to GCC unused function parameters
    468  */
    469470#define ATTRIBUTE_UNUSED
    470 /**
    471  * LIBXML_ATTR_ALLOC_SIZE:
    472  *
    473  * Macro used to indicate to GCC this is an allocator function
    474  */
    475471#define LIBXML_ATTR_ALLOC_SIZE(x)
    476 /**
    477  * LIBXML_ATTR_FORMAT:
    478  *
    479  * Macro used to indicate to GCC the parameter are printf like
    480  */
    481472#define LIBXML_ATTR_FORMAT(fmt,args)
     473#ifndef XML_DEPRECATED
     474#  if defined (IN_LIBXML) || !defined (_MSC_VER)
     475#    define XML_DEPRECATED
     476/* Available since Visual Studio 2005 */
     477#  elif defined (_MSC_VER) && (_MSC_VER >= 1400)
     478#    define XML_DEPRECATED __declspec(deprecated)
     479#  endif
     480#endif
     481#if defined (_MSC_VER) && (_MSC_VER >= 1400)
     482#  define XML_IGNORE_FPTR_CAST_WARNINGS __pragma(warning(push))
     483#else
     484#  define XML_IGNORE_FPTR_CAST_WARNINGS
     485#endif
     486#ifndef XML_POP_WARNINGS
     487#  if defined (_MSC_VER) && (_MSC_VER >= 1400)
     488#    define XML_POP_WARNINGS __pragma(warning(pop))
     489#  else
     490#    define XML_POP_WARNINGS
     491#  endif
     492#endif
    482493#endif /* __GNUC__ */
     494
     495#define XML_NO_ATTR
     496
     497#ifdef LIBXML_THREAD_ENABLED
     498  #define XML_DECLARE_GLOBAL(name, type, attrs) \
     499    attrs XMLPUBFUN type *__##name(void);
     500  #define XML_GLOBAL_MACRO(name) (*__##name())
     501#else
     502  #define XML_DECLARE_GLOBAL(name, type, attrs) \
     503    attrs XMLPUBVAR type name;
     504#endif
    483505
    484506#ifdef __cplusplus
  • trunk/src/libs/libxml2-2.12.6/libxml.h

    r104106 r104169  
    7777#endif
    7878
     79#endif /* #if defined(macintosh) */
    7980#endif /* ! __XML_LIBXML_H__ */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette