mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
libxml.h: Add comments and indentation
This commit is contained in:
@@ -6,16 +6,16 @@
|
|||||||
#define HAVE_FCNTL_H
|
#define HAVE_FCNTL_H
|
||||||
|
|
||||||
#if defined(__MINGW32__) || (defined(_MSC_VER) && _MSC_VER >= 1600)
|
#if defined(__MINGW32__) || (defined(_MSC_VER) && _MSC_VER >= 1600)
|
||||||
#define HAVE_STDINT_H
|
#define HAVE_STDINT_H
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#if _MSC_VER < 1900
|
#if _MSC_VER < 1900
|
||||||
#define snprintf _snprintf
|
#define snprintf _snprintf
|
||||||
#endif
|
#endif
|
||||||
#if _MSC_VER < 1500
|
#if _MSC_VER < 1500
|
||||||
#define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
|
#define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __LIBXML_WIN32_CONFIG__ */
|
#endif /* __LIBXML_WIN32_CONFIG__ */
|
||||||
|
|||||||
34
libxml.h
34
libxml.h
@@ -14,45 +14,49 @@
|
|||||||
* Do not add any #include directives above this block.
|
* Do not add any #include directives above this block.
|
||||||
*/
|
*/
|
||||||
#ifndef NO_LARGEFILE_SOURCE
|
#ifndef NO_LARGEFILE_SOURCE
|
||||||
#ifndef _LARGEFILE_SOURCE
|
#ifndef _LARGEFILE_SOURCE
|
||||||
#define _LARGEFILE_SOURCE
|
#define _LARGEFILE_SOURCE
|
||||||
#endif
|
#endif
|
||||||
#ifndef _FILE_OFFSET_BITS
|
#ifndef _FILE_OFFSET_BITS
|
||||||
#define _FILE_OFFSET_BITS 64
|
#define _FILE_OFFSET_BITS 64
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Currently supported platforms use either autoconf or
|
* These files are generated by the build system and contain private
|
||||||
* copy to config.h own "preset" configuration file.
|
* and public build configuration.
|
||||||
* As result ifdef HAVE_CONFIG_H is omitted here.
|
|
||||||
*/
|
*/
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include <libxml/xmlversion.h>
|
#include <libxml/xmlversion.h>
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Due to some Autotools limitations, this variable must be passed as
|
||||||
|
* compiler flag. Define a default value if the macro wasn't set by the
|
||||||
|
* build system.
|
||||||
|
*/
|
||||||
#ifndef SYSCONFDIR
|
#ifndef SYSCONFDIR
|
||||||
#define SYSCONFDIR "/etc"
|
#define SYSCONFDIR "/etc"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WITH_TRIO
|
#ifdef WITH_TRIO
|
||||||
#define TRIO_REPLACE_STDIO
|
#define TRIO_REPLACE_STDIO
|
||||||
#include "trio.h"
|
#include "trio.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_WIN32) && \
|
#if !defined(_WIN32) && \
|
||||||
!defined(__CYGWIN__) && \
|
!defined(__CYGWIN__) && \
|
||||||
(defined(__clang__) || \
|
(defined(__clang__) || \
|
||||||
(defined(__GNUC__) && (__GNUC__ >= 4)))
|
(defined(__GNUC__) && (__GNUC__ >= 4)))
|
||||||
#define XML_HIDDEN __attribute__((visibility("hidden")))
|
#define XML_HIDDEN __attribute__((visibility("hidden")))
|
||||||
#else
|
#else
|
||||||
#define XML_HIDDEN
|
#define XML_HIDDEN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__clang__) || \
|
#if defined(__clang__) || \
|
||||||
(defined(__GNUC__) && (__GNUC__ >= 8))
|
(defined(__GNUC__) && (__GNUC__ >= 8))
|
||||||
#define ATTRIBUTE_NO_SANITIZE(arg) __attribute__((no_sanitize(arg)))
|
#define ATTRIBUTE_NO_SANITIZE(arg) __attribute__((no_sanitize(arg)))
|
||||||
#else
|
#else
|
||||||
#define ATTRIBUTE_NO_SANITIZE(arg)
|
#define ATTRIBUTE_NO_SANITIZE(arg)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* ! __XML_LIBXML_H__ */
|
#endif /* ! __XML_LIBXML_H__ */
|
||||||
|
|||||||
Reference in New Issue
Block a user