add POSIX
Test and Deploy / test (push) Failing after 11s Details
Test and Deploy / docs (push) Has been skipped Details

This commit is contained in:
Evan Burkey 2024-07-09 12:57:33 -07:00
parent adc2c121d7
commit 87d90976b1
2 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.17)
project(flint C) project(flint C)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
if ((${CMAKE_SYSTEM_NAME} STREQUAL "Linux"))
add_compile_definitions(flint __USE_XOPEN_EXTENDED)
endif()
set(CMAKE_C_STANDARD 99) set(CMAKE_C_STANDARD 99)
include_directories(include) include_directories(include)

View File

@ -1,6 +1,6 @@
.PHONY : clean tests all manual .PHONY : clean tests all manual
CFLAGS = -std=c99 -Iinclude -pedantic CFLAGS = -std=c99 -Iinclude -pedantic -D_POSIX_C_SOURCE=200112L
WARNINGS= -Wall -Wextra WARNINGS= -Wall -Wextra
LDFLAGS = -fPIC -shared LDFLAGS = -fPIC -shared
MACROS= -D_POSIX_C_SOURCE=1 MACROS= -D_POSIX_C_SOURCE=1