]> Savannah Git Hosting - gnulib.git/commitdiff
fcntl-h: fix compilation with Intel C++ compiler
authorJohannes Zarl <johannes.zarl@jku.at>
Thu, 11 Sep 2014 13:38:53 +0000 (14:38 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 11 Sep 2014 13:44:35 +0000 (14:44 +0100)
* lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.

ChangeLog
lib/fcntl.in.h

index 7b8202f206ee1361fa2298ac7d050e9bb1e180b2..fa7f84ff3deb13b89df82ca6b021a142679fce76 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
+
+       fcntl-h: fix compilation with Intel C++ compiler (trivial)
+       * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
+
 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
 
        mountlist: use /proc/self/mountinfo when available
index e23b4b2bcdd63fee5fe1d324652bc7dfb5a1387e..f63cd6a734c1911ac963e459de16a8cec9f5bf10 100644 (file)
@@ -34,7 +34,7 @@
    extern "C" { ... } block, which leads to errors in C++ mode with the
    overridden <sys/stat.h> from gnulib.  These errors are known to be gone
    with g++ version >= 4.3.  */
-#if !(defined __GLIBC__ || defined __UCLIBC__) || (defined __cplusplus && defined GNULIB_NAMESPACE && !(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)))
+#if !(defined __GLIBC__ || defined __UCLIBC__) || (defined __cplusplus && defined GNULIB_NAMESPACE && (defined __ICC || !(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))))
 # include <sys/stat.h>
 #endif
 #@INCLUDE_NEXT@ @NEXT_FCNTL_H@
@@ -53,7 +53,7 @@
    extern "C" { ... } block, which leads to errors in C++ mode with the
    overridden <sys/stat.h> from gnulib.  These errors are known to be gone
    with g++ version >= 4.3.  */
-#if !(defined __GLIBC__ || defined __UCLIBC__) || (defined __cplusplus && defined GNULIB_NAMESPACE && !(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)))
+#if !(defined __GLIBC__ || defined __UCLIBC__) || (defined __cplusplus && defined GNULIB_NAMESPACE && (defined __ICC || !(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))))
 # include <sys/stat.h>
 #endif
 /* The include_next requires a split double-inclusion guard.  */