Change ffi.h.in so that braces match
authorTom Tromey <tom@tromey.com>
Mon, 22 Feb 2016 03:08:21 +0000 (20:08 -0700)
committerRichard Henderson <rth@twiddle.net>
Wed, 4 May 2016 16:38:34 +0000 (06:38 -1000)
This is a tiny refactoring to make it so brace-matching works in
Emacs.

include/ffi.h.in

index ba1884f..00c1caa 100644 (file)
@@ -305,10 +305,13 @@ typedef struct {
   ffi_cif   *cif;
   void     (*fun)(ffi_cif*,void*,void**,void*);
   void      *user_data;
+} ffi_closure
 #ifdef __GNUC__
-} ffi_closure __attribute__((aligned (8)));
-#else
-} ffi_closure;
+    __attribute__((aligned (8)))
+#endif
+    ;
+
+#ifndef __GNUC__
 # ifdef __sgi
 #  pragma pack 0
 # endif