Skip to content

Commit dd414c1

Browse files
committed
empty struct is a GNU extension, patch by Carlo Bramini
git-svn-id: https://svn.code.sf.net/p/vice-emu/code/trunk@45873 379a1393-f5fb-40a0-bcee-ef074d9b53f7
1 parent 70ca63e commit dd414c1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

vice/src/sid/sid.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,12 @@ sid_engine_t fakesid_hooks =
110110
fakesid_resid_state_write
111111
};
112112

113-
struct sound_s {};
113+
struct sound_s {
114+
/* empty struct is a GNU extension, so add a dummy for non GNU compilers */
115+
#ifndef __GNUC__
116+
uint8_t dummy;
117+
#endif
118+
};
114119

115120
/* ------------------------------------------------------------------------- */
116121

0 commit comments

Comments
 (0)