Skip to content

Commit cf222ff

Browse files
Make the c90 test pass on Mac and on Windows
On the Mac, the Clang compiler complains about our (required) use of uint64_t, which is typedef'ed to long long. That type didn't exist in C90. On Windows, I forgot the CONFIG += console, resulting in error LNK2019: unresolved external symbol _WinMain@16 referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@yahxz) Signed-off-by: Thiago Macieira <[email protected]>
1 parent 5356c1d commit cf222ff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/c90/c90.pro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
CONFIG += testcase parallel_test
2-
CONFIG -= qt
1+
CONFIG += testcase parallel_test console
2+
CONFIG -= qt app_bundle
33
gcc: QMAKE_CFLAGS += -std=c90 -pedantic-errors -Wall -Wextra -Werror
4+
darwin: QMAKE_CFLAGS += -Wno-long-long
45

56
SOURCES += tst_c90.c
67
INCLUDEPATH += ../../src

0 commit comments

Comments
 (0)