diff options
author | Tristan Gingold <tgingold@free.fr> | 2023-01-18 20:46:38 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2023-01-20 21:54:34 +0100 |
commit | 79542b1680f1dcd3e746a584ff1bf198f50c8486 (patch) | |
tree | 53ceb6dc1af2af1b2b838ba0e54c90b088f9b5c4 /src/grt | |
parent | 5bae163c99500d2395391a40b55d2c5618eaccd1 (diff) | |
download | ghdl-79542b1680f1dcd3e746a584ff1bf198f50c8486.tar.gz ghdl-79542b1680f1dcd3e746a584ff1bf198f50c8486.tar.bz2 ghdl-79542b1680f1dcd3e746a584ff1bf198f50c8486.zip |
synth: add partial support of foreign subprograms
Diffstat (limited to 'src/grt')
-rw-r--r-- | src/grt/grt-cdynload.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/grt/grt-cdynload.c b/src/grt/grt-cdynload.c index af595f454..493679759 100644 --- a/src/grt/grt-cdynload.c +++ b/src/grt/grt-cdynload.c @@ -1,5 +1,10 @@ #if defined(__WIN32__) #include <windows.h> + +#ifdef __cplusplus +extern "C" { +#endif + void * grt_dynload_open (const char *path) { @@ -28,10 +33,18 @@ grt_dynload_error (void) return msg; } +#ifdef __cplusplus +} +#endif + #else #include <dlfcn.h> +#ifdef __cplusplus +extern "C" { +#endif + void * grt_dynload_open (const char *path) { @@ -49,4 +62,8 @@ grt_dynload_error (void) { return dlerror (); } + +#ifdef __cplusplus +} +#endif #endif |