diff --git a/LibC/dlfcn.cpp b/LibC/dlfcn.cpp index e654626d83..08c5e12490 100644 --- a/LibC/dlfcn.cpp +++ b/LibC/dlfcn.cpp @@ -1,5 +1,7 @@ -#include "dlfcn.h" #include +#include + +extern "C" { int dlclose(void*) { @@ -20,3 +22,5 @@ void *dlsym(void*, const char*) { ASSERT_NOT_REACHED(); } + +} diff --git a/LibC/dlfcn.h b/LibC/dlfcn.h index 599121d203..0b9505fe62 100644 --- a/LibC/dlfcn.h +++ b/LibC/dlfcn.h @@ -1,5 +1,9 @@ #pragma once +#include + +__BEGIN_DECLS + #define RTLD_LAZY 1 #define RTLD_NOW 2 #define RTLD_GLOBAL 3 @@ -9,3 +13,5 @@ int dlclose(void*); char *dlerror(); void *dlopen(const char*, int); void *dlsym(void*, const char*); + +__END_DECLS