mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-02-05 05:47:00 +03:00
Use __linux__ macro in generated code
This commit is contained in:
parent
4b4d3d8516
commit
03a238f954
@ -8,8 +8,7 @@ addons:
|
||||
matrix:
|
||||
include:
|
||||
# Try to emulate a C89 compiler on a POSIX system by disabling as many
|
||||
# GNU extensions as possible. -Dlinux is required to make the weak
|
||||
# pthread symbols work.
|
||||
# GNU extensions as possible.
|
||||
- compiler: gcc
|
||||
env: CFLAGS="-O2 -std=c89 -D_POSIX_C_SOURCE=200809L"
|
||||
# clang with AddressSanitizer and UndefinedBehaviorSanitizer.
|
||||
|
@ -18,7 +18,7 @@
|
||||
#ifdef IN_LIBXML
|
||||
#ifdef __GNUC__
|
||||
#ifdef PIC
|
||||
#ifdef linux
|
||||
#ifdef __linux__
|
||||
#if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)
|
||||
|
||||
#include "libxml/c14n.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user