aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-01-20 01:59:11 +0000
committerTimothy Gu <timothygu99@gmail.com>2014-01-20 01:59:11 +0000
commit53c31d96e15eaf310dd2f82ff0fc0e1e9b6cb0bf (patch)
tree47b3a1c3a595b2e7a8291beb5541a8fd61323713
parent0e8ad87f56faef08b901b36d4c8778a7d8de1fc1 (diff)
downloaddlfcn-win32-53c31d96e15eaf310dd2f82ff0fc0e1e9b6cb0bf.tar.gz
dlfcn-win32-53c31d96e15eaf310dd2f82ff0fc0e1e9b6cb0bf.tar.bz2
dlfcn-win32-53c31d96e15eaf310dd2f82ff0fc0e1e9b6cb0bf.zip
Add C++ extern "C"
See Issue 8 and Issue 12.
-rw-r--r--dlfcn.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/dlfcn.h b/dlfcn.h
index dfc2551..deda9a8 100644
--- a/dlfcn.h
+++ b/dlfcn.h
@@ -20,6 +20,10 @@
20#ifndef DLFCN_H 20#ifndef DLFCN_H
21#define DLFCN_H 21#define DLFCN_H
22 22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
23/* POSIX says these are implementation-defined. 27/* POSIX says these are implementation-defined.
24 * To simplify use with Windows API, we treat them the same way. 28 * To simplify use with Windows API, we treat them the same way.
25 */ 29 */
@@ -42,4 +46,8 @@ int dlclose( void *handle );
42void *dlsym ( void *handle, const char *name ); 46void *dlsym ( void *handle, const char *name );
43char *dlerror( void ); 47char *dlerror( void );
44 48
49#ifdef __cplusplus
50}
51#endif
52
45#endif /* DLFCN_H */ 53#endif /* DLFCN_H */