回答編集履歴

1

MinGWとそれ以外とで分ける必要性がないため、単に

2016/03/14 11:53

投稿

yamma_ma
yamma_ma

スコア21

test CHANGED
@@ -3,18 +3,6 @@
3
3
 
4
4
 
5
5
  ```C
6
-
7
- #ifdef __MINGW32__
8
-
9
- #define ATTR __attribute__ ((gcc_struct, packed))
10
-
11
- #else
12
-
13
- #define ATTR __attribute__ ((packed))
14
-
15
- #endif
16
-
17
-
18
6
 
19
7
  typedef struct _St1
20
8
 
@@ -36,6 +24,6 @@
36
24
 
37
25
  gint16 v7;
38
26
 
39
- } ATTR St1;
27
+ } __attribute__ ((gcc_struct, packed)) St1;
40
28
 
41
29
  ```