mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
Mandate C90 conformance
This PR ensures and enforces C90 conformance for all files C, including tests. * Modify CMakeLists.txt to mandate C90 conformance (for better compiler compatibility) * Update deps/ntlmclient/utf8.h to latest version * Modify two tests and one header to use C comments instead of C++ comments
This commit is contained in:
committed by
Edward Thomson
parent
99e0d2a6e1
commit
f1cac063ba
@@ -4,6 +4,7 @@ file(GLOB SRC_EXAMPLES *.c *.h)
|
||||
|
||||
add_executable(lg2 ${SRC_EXAMPLES})
|
||||
set_target_properties(lg2 PROPERTIES C_STANDARD 90)
|
||||
set_target_properties(lg2 PROPERTIES C_EXTENSIONS OFF)
|
||||
|
||||
# Ensure that we do not use deprecated functions internally
|
||||
add_definitions(-DGIT_DEPRECATE_HARD)
|
||||
|
||||
Reference in New Issue
Block a user