Skip to content

Commit

Permalink
ds: Fix extern error
Browse files Browse the repository at this point in the history
  • Loading branch information
XuShaohua committed Dec 1, 2023
1 parent 495636a commit 16de0a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ds/1.intro/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
)
2 changes: 1 addition & 1 deletion ds/4.tree/binary_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <stdint.h>

#ifdef __cplusplus
extern "C"
extern "C" {
#endif

typedef struct binary_tree_s binary_tree_t;
Expand Down

0 comments on commit 16de0a6

Please sign in to comment.