Archived
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 <thiago.macieira@intel.com>
This commit is contained in:
+3
-2
@@ -1,6 +1,7 @@
|
||||
CONFIG += testcase parallel_test
|
||||
CONFIG -= qt
|
||||
CONFIG += testcase parallel_test console
|
||||
CONFIG -= qt app_bundle
|
||||
gcc: QMAKE_CFLAGS += -std=c90 -pedantic-errors -Wall -Wextra -Werror
|
||||
darwin: QMAKE_CFLAGS += -Wno-long-long
|
||||
|
||||
SOURCES += tst_c90.c
|
||||
INCLUDEPATH += ../../src
|
||||
|
||||
Reference in New Issue
Block a user