Skip to content

Commit a2ed59a

Browse files
committed
amalgamation fixes
1 parent 1c6f838 commit a2ed59a

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
cmake --build build
2626
2727
- name: Compile Test Amalgamation
28-
run: gcc -Wall -Wextra -Werror -Ibuild/c89stringutils -o test_amalg c89stringutils/tests/test_amalg.c
28+
run: gcc -Wall -Wextra -Werror -Ibuild -o test_amalg c89stringutils/tests/test_amalg.c
2929

3030
- name: Run Test Amalgamation
3131
run: ./test_amalg

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.15")
2525
target_compile_options(
2626
"${PROJECT_NAME}_compiler_flags"
2727
INTERFACE
28-
"$<$<AND:${gcc_like},$<CONFIG:Debug>>:$<BUILD_INTERFACE:-Wshadow;-Wformat=2;-Wall;-Wno-missing-braces;-Wno-long-long;-pedantic;-fprofile-arcs;-ftest-coverage>>"
28+
"$<$<AND:${gcc_like},$<CONFIG:Debug>>:$<BUILD_INTERFACE:-Wshadow;-Wformat=2;-Wall;-Wno-missing-braces;-Wno-long-long;-pedantic;>>"
2929
"$<${msvc}:$<BUILD_INTERFACE:-W4;-WX;-Zi;-permissive->>"
3030
)
3131
target_link_options(
3232
"${PROJECT_NAME}_compiler_flags"
3333
INTERFACE
34-
"$<$<AND:${gcc_like},$<CONFIG:Debug>>:$<BUILD_INTERFACE:--coverage>>"
34+
"$<$<AND:${gcc_like},$<CONFIG:Debug>>:$<BUILD_INTERFACE:>>"
3535
)
3636
endif (CMAKE_VERSION VERSION_GREATER_EQUAL "3.15")
3737
# Set the build directories

c89stringutils/c89stringutils_safecrt.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
#include "c89stringutils_string_extras.h"
1212
#include <stddef.h>
1313
#include <stdio.h>
14+
15+
#if defined(C89STRINGUTILS_HAVE_WCHAR_H)
1416
#include <wchar.h>
17+
#endif
1518

1619
#if defined(C89STRINGUTILS_HAVE_SET_CONSTRAINT_HANDLER_S)
1720
#include <stdlib.h>
@@ -20,7 +23,7 @@
2023

2124
#ifdef __cplusplus
2225
extern "C" {
23-
#endif
26+
#endif /* __cplusplus */
2427

2528
#if defined(C89STRINGUTILS_HAVE_SET_CONSTRAINT_HANDLER_S)
2629
#define c89stringutils_constraint_handler_t constraint_handler_t

0 commit comments

Comments
 (0)