Compile as C99
This makes sure nobody else runs into traps involving 'unix', 'linux' and a few others being predefineds macro, and it improves compatibility with old compilers that default to -std=gnu89 and fail on variable declarations in for loops. (Modern GCCs default to -std=gnu11.) Fixes #156
This commit is contained in:
parent
19e0c63101
commit
5cf285d255
|
@ -19,7 +19,8 @@ lib_LTLIBRARIES = discord.la
|
|||
discord_la_CFLAGS = \
|
||||
$(BITLBEE_CFLAGS) \
|
||||
$(GLIB_CFLAGS) \
|
||||
-Wall
|
||||
-Wall \
|
||||
-std=c99
|
||||
|
||||
discord_la_LDFLAGS = \
|
||||
-module \
|
||||
|
|
Loading…
Reference in New Issue