From 16de0a628882ef28cc054e68bbb70feabaacc01e Mon Sep 17 00:00:00 2001 From: Xu Shaohua Date: Fri, 1 Dec 2023 16:01:54 +0800 Subject: [PATCH] ds: Fix extern error --- ds/1.intro/CMakeLists.txt | 4 ++-- ds/4.tree/binary_tree.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ds/1.intro/CMakeLists.txt b/ds/1.intro/CMakeLists.txt index 51527680..87f1a22e 100644 --- a/ds/1.intro/CMakeLists.txt +++ b/ds/1.intro/CMakeLists.txt @@ -1,7 +1,7 @@ -add_executable(ds_intro_polynomial +add_executable(polynomial main.c ) -target_link_libraries(ds_intro_polynomial +target_link_libraries(polynomial -lm ) \ No newline at end of file diff --git a/ds/4.tree/binary_tree.h b/ds/4.tree/binary_tree.h index 29343b65..7ad7311f 100644 --- a/ds/4.tree/binary_tree.h +++ b/ds/4.tree/binary_tree.h @@ -8,7 +8,7 @@ #include #ifdef __cplusplus -extern "C" +extern "C" { #endif typedef struct binary_tree_s binary_tree_t;