You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mingw-dlfcn/dlfcn-fix-cplusplus-linkage...

21 lines
446 B

--- dlfcn.h.orig 2009-10-30 15:36:35.357902913 +0100
+++ dlfcn.h 2009-10-30 15:39:51.126664184 +0100
@@ -37,9 +37,17 @@
#define RTLD_DEFAULT 0
#define RTLD_NEXT 0
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void *dlopen ( const char *file, int mode );
int dlclose( void *handle );
void *dlsym ( void *handle, const char *name );
char *dlerror( void );
+#ifdef __cplusplus
+}
+#endif
+
#endif /* DLFCN_H */