Skip to content

Commit b6e3b72

Browse files
authored
Merge pull request #14 from fweimer-rh/c99
toke/Makefile: Declare return type of main in GCC flag probe
2 parents 2e143e9 + 98d1376 commit b6e3b72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

toke/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ LDFLAGS =
4141
# CFLAGS := $(CFLAGS) -g
4242

4343
# for gcc 4. remove if you fixed the code.
44-
_GCC4_CFLAGS=$(shell echo 'main(int argc, char **argv){return 0;}' > .test.c; \
44+
_GCC4_CFLAGS=$(shell echo 'int main(int argc, char **argv){return 0;}' > .test.c; \
4545
$(CC) -Wno-pointer-sign -c .test.c -o .test.o > /dev/null 2>&1 \
4646
&& echo -Wno-pointer-sign; rm .test.c .test.o )
4747
CFLAGS := $(CFLAGS) $(_GCC4_CFLAGS)

0 commit comments

Comments
 (0)