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:
GravisZro
2024-03-18 10:04:27 -04:00
committed by Edward Thomson
parent 99e0d2a6e1
commit f1cac063ba
10 changed files with 1235 additions and 782 deletions

View File

@@ -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)