Commit 6c07077a61fd0dc5ac11759ea1b4345acf486f3c

Tom Tromey 2016-02-21T20:08:21

Change ffi.h.in so that braces match This is a tiny refactoring to make it so brace-matching works in Emacs.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/include/ffi.h.in b/include/ffi.h.in
index ba1884f..00c1caa 100644
--- a/include/ffi.h.in
+++ b/include/ffi.h.in
@@ -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