1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

libxml.h: Add comments and indentation

This commit is contained in:
Nick Wellnhofer
2022-12-08 03:58:41 +01:00
parent 92b8ffada8
commit 93a01c46f1
2 changed files with 26 additions and 22 deletions

View File

@@ -14,45 +14,49 @@
* Do not add any #include directives above this block.
*/
#ifndef NO_LARGEFILE_SOURCE
#ifndef _LARGEFILE_SOURCE
#define _LARGEFILE_SOURCE
#endif
#ifndef _FILE_OFFSET_BITS
#define _FILE_OFFSET_BITS 64
#endif
#ifndef _LARGEFILE_SOURCE
#define _LARGEFILE_SOURCE
#endif
#ifndef _FILE_OFFSET_BITS
#define _FILE_OFFSET_BITS 64
#endif
#endif
/*
* Currently supported platforms use either autoconf or
* copy to config.h own "preset" configuration file.
* As result ifdef HAVE_CONFIG_H is omitted here.
* These files are generated by the build system and contain private
* and public build configuration.
*/
#include "config.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
#define SYSCONFDIR "/etc"
#endif
#ifdef WITH_TRIO
#define TRIO_REPLACE_STDIO
#include "trio.h"
#define TRIO_REPLACE_STDIO
#include "trio.h"
#endif
#if !defined(_WIN32) && \
!defined(__CYGWIN__) && \
(defined(__clang__) || \
(defined(__GNUC__) && (__GNUC__ >= 4)))
#define XML_HIDDEN __attribute__((visibility("hidden")))
#define XML_HIDDEN __attribute__((visibility("hidden")))
#else
#define XML_HIDDEN
#define XML_HIDDEN
#endif
#if defined(__clang__) || \
(defined(__GNUC__) && (__GNUC__ >= 8))
#define ATTRIBUTE_NO_SANITIZE(arg) __attribute__((no_sanitize(arg)))
#define ATTRIBUTE_NO_SANITIZE(arg) __attribute__((no_sanitize(arg)))
#else
#define ATTRIBUTE_NO_SANITIZE(arg)
#define ATTRIBUTE_NO_SANITIZE(arg)
#endif
#endif /* ! __XML_LIBXML_H__ */