emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r114438: Fix the definition of 'assume' for GCC olde


From: Eli Zaretskii
Subject: [Emacs-diffs] trunk r114438: Fix the definition of 'assume' for GCC older than 4.5.
Date: Mon, 23 Sep 2013 08:26:26 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 114438
revision-id: address@hidden
parent: address@hidden
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Mon 2013-09-23 11:25:48 +0300
message:
  Fix the definition of 'assume' for GCC older than 4.5.
  
   src/conf_post.h (__has_builtin): Define to zero, if undefined, on
   all platforms, not just for clang.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/conf_post.h                conf_post.h-20120730211826-q0qbxxwh2emw52hd-1
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-09-23 07:12:01 +0000
+++ b/src/ChangeLog     2013-09-23 08:25:48 +0000
@@ -1,3 +1,8 @@
+2013-09-23  Eli Zaretskii  <address@hidden>
+
+       * conf_post.h (__has_builtin): Define to zero, if undefined, on
+       all platforms, not just for clang.
+
 2013-09-23  Jan Djärv  <address@hidden>
 
        * filelock.c (lock_file_1): Rearrange to remove compiler warning

=== modified file 'src/conf_post.h'
--- a/src/conf_post.h   2013-09-23 07:12:01 +0000
+++ b/src/conf_post.h   2013-09-23 08:25:48 +0000
@@ -248,10 +248,8 @@
 # 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]