]> code.delx.au - gnu-emacs/commitdiff
Port __builtin_assume_aligned to Sun C 5.13
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 10 Jun 2016 06:15:41 +0000 (23:15 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 10 Jun 2016 06:16:00 +0000 (23:16 -0700)
* src/conf_post.h (__builtin_assume_aligned):
Fix typo: the extra arg did not conform to C99.

src/conf_post.h

index 1dd915b5969810ad738a48026b6ef11d826112e7..6f48fd6d184d610da3e0b657db8b81d2b66230fa 100644 (file)
@@ -88,7 +88,7 @@ typedef bool bool_bf;
 
 /* Yield PTR, which must be aligned to ALIGNMENT.  */
 #if ! __has_builtin (__builtin_assume_aligned)
-# define __builtin_assume_aligned(ptr, alignment, ...) ((void *) (ptr))
+# define __builtin_assume_aligned(ptr, ...) ((void *) (ptr))
 #endif
 
 #ifdef DARWIN_OS