Skip to content

Commit

Permalink
allow implicit declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
angrymouse committed Nov 7, 2023
1 parent 3e7f400 commit 10172e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
],
"cflags": [
"-std=c++11",
"-Wno-implicit-function-declaration",
"-x c++"
],
"cflags_cc":["-Wno-implicit-function-declaration"],
"conditions": [
["OS=='win'", {
"cflags!": ["/EHs", "/EHc"],
Expand Down
4 changes: 2 additions & 2 deletions fatal_handler.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <stdio.h>
#include <stdlib.h>;
int fatal_handler(void *udata, const char *msg){
#include <stdlib.h>
extern int fatal_handler(void *udata, const char *msg){
printf("%s", msg);
exit(1);
return 1;
Expand Down

0 comments on commit 10172e9

Please sign in to comment.