From 03a238f954ed2959e9eacb011872779e6e77ab5d Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Fri, 29 Sep 2017 13:00:50 +0200 Subject: [PATCH] Use __linux__ macro in generated code --- .travis.yml | 3 +-- doc/elfgcchack.xsl | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6055b9a7..e14375fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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. diff --git a/doc/elfgcchack.xsl b/doc/elfgcchack.xsl index 9b1a9bc1..8dd5c6a7 100644 --- a/doc/elfgcchack.xsl +++ b/doc/elfgcchack.xsl @@ -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"