diff options
| author | Timothy Gu <timothygu99@gmail.com> | 2014-01-20 01:59:11 +0000 |
|---|---|---|
| committer | Timothy Gu <timothygu99@gmail.com> | 2014-01-20 01:59:11 +0000 |
| commit | 53c31d96e15eaf310dd2f82ff0fc0e1e9b6cb0bf (patch) | |
| tree | 47b3a1c3a595b2e7a8291beb5541a8fd61323713 | |
| parent | 0e8ad87f56faef08b901b36d4c8778a7d8de1fc1 (diff) | |
| download | dlfcn-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.h | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -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 | ||
| 24 | extern "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 ); | |||
| 42 | void *dlsym ( void *handle, const char *name ); | 46 | void *dlsym ( void *handle, const char *name ); |
| 43 | char *dlerror( void ); | 47 | char *dlerror( void ); |
| 44 | 48 | ||
| 49 | #ifdef __cplusplus | ||
| 50 | } | ||
| 51 | #endif | ||
| 52 | |||
| 45 | #endif /* DLFCN_H */ | 53 | #endif /* DLFCN_H */ |
