mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
Define LFS macros before including system headers
xmlstring.h includes stdarg.h, so it must be included after defining macros like _FILE_OFFSET_BITS.
This commit is contained in:
parent
145170125a
commit
433b318668
7
libxml.h
7
libxml.h
@ -9,8 +9,10 @@
|
||||
#ifndef __XML_LIBXML_H__
|
||||
#define __XML_LIBXML_H__
|
||||
|
||||
#include <libxml/xmlstring.h>
|
||||
|
||||
/*
|
||||
* These macros must be defined before including system headers.
|
||||
* Do not add any #include directives above this block.
|
||||
*/
|
||||
#ifndef NO_LARGEFILE_SOURCE
|
||||
#ifndef _LARGEFILE_SOURCE
|
||||
#define _LARGEFILE_SOURCE
|
||||
@ -27,6 +29,7 @@
|
||||
*/
|
||||
#include "config.h"
|
||||
#include <libxml/xmlversion.h>
|
||||
#include <libxml/xmlstring.h>
|
||||
|
||||
#ifndef SYSCONFDIR
|
||||
#define SYSCONFDIR "/etc"
|
||||
|
Loading…
x
Reference in New Issue
Block a user