]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix the definition of 'assume' for GCC older than 4.5.
authorEli Zaretskii <eliz@gnu.org>
Mon, 23 Sep 2013 08:25:48 +0000 (11:25 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 23 Sep 2013 08:25:48 +0000 (11:25 +0300)
 src/conf_post.h (__has_builtin): Define to zero, if undefined, on
 all platforms, not just for clang.

src/ChangeLog
src/conf_post.h

index 29cd86765844d1e7233544dbfa31dbb8d09a125a..093368568c26e38345f5bf41c135c0747687ef3d 100644 (file)
@@ -1,3 +1,8 @@
+2013-09-23  Eli Zaretskii  <eliz@gnu.org>
+
+       * conf_post.h (__has_builtin): Define to zero, if undefined, on
+       all platforms, not just for clang.
+
 2013-09-23  Jan Djärv  <jan.h.d@swipnet.se>
 
        * filelock.c (lock_file_1): Rearrange to remove compiler warning
index 7d4e1f43ed7b31d37b8fa3a7c39077c33f696e16..3c348d0705bf15067d4c56562be64ed78dc5da91 100644 (file)
@@ -248,10 +248,8 @@ extern void _DebPrint (const char *fmt, ...);
 # define FLEXIBLE_ARRAY_MEMBER 1
 #endif
 
-#ifdef __clang__
-# ifndef __has_builtin
-#  define __has_builtin(x) 0
-# endif
+#ifndef __has_builtin
+# define __has_builtin(x) 0
 #endif
 
 /* assume(cond) tells the compiler (and lint) that a certain condition