add POSIX
This commit is contained in:
parent
adc2c121d7
commit
7a53f232bd
@ -3,6 +3,7 @@ project(flint C)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
add_definitions(-D_POSIX_C_SOURCE=200112L)
|
||||
include_directories(include)
|
||||
|
||||
set(SOURCES
|
||||
|
2
Makefile
2
Makefile
@ -1,6 +1,6 @@
|
||||
.PHONY : clean tests all manual
|
||||
|
||||
CFLAGS = -std=c99 -Iinclude -pedantic
|
||||
CFLAGS = -std=c99 -Iinclude -pedantic -D_POSIX_C_SOURCE=200112L
|
||||
WARNINGS= -Wall -Wextra
|
||||
LDFLAGS = -fPIC -shared
|
||||
MACROS= -D_POSIX_C_SOURCE=1
|
||||
|
Loading…
x
Reference in New Issue
Block a user