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
169f86b7fb
commit
f687f3e002
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
|
||||
@ -39,6 +41,7 @@
|
||||
#include "config.h"
|
||||
#include <libxml/xmlversion.h>
|
||||
#endif
|
||||
#include <libxml/xmlstring.h>
|
||||
|
||||
#if defined(__Lynx__)
|
||||
#include <stdio.h> /* pull definition of size_t */
|
||||
|
Loading…
x
Reference in New Issue
Block a user