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:
Alcaro 2018-05-27 02:11:28 +02:00
parent 19e0c63101
commit 5cf285d255
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,8 @@ lib_LTLIBRARIES = discord.la
discord_la_CFLAGS = \
$(BITLBEE_CFLAGS) \
$(GLIB_CFLAGS) \
-Wall
-Wall \
-std=c99
discord_la_LDFLAGS = \
-module \