diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-11-20 20:32:39 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-11-20 20:32:39 +0100 |
commit | db734580dbdd495097b22bfcc1de7ffd50d6a337 (patch) | |
tree | 919c4cb417a0fd20a3fb005e8d480af1af8471f1 | |
parent | 01b133bc895d91e096ae054b5d02c1e6e54ec2e1 (diff) | |
download | ghdl-db734580dbdd495097b22bfcc1de7ffd50d6a337.tar.gz ghdl-db734580dbdd495097b22bfcc1de7ffd50d6a337.tar.bz2 ghdl-db734580dbdd495097b22bfcc1de7ffd50d6a337.zip |
gcc: allow to build grt-cstdio with c++.
-rw-r--r-- | src/grt/grt-cstdio.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/grt/grt-cstdio.c b/src/grt/grt-cstdio.c index 31d58be07..5e6561c53 100644 --- a/src/grt/grt-cstdio.c +++ b/src/grt/grt-cstdio.c @@ -20,6 +20,10 @@ #include <stdlib.h> #include <string.h> +#ifdef __cplusplus +extern "C" { +#endif + FILE * __ghdl_get_stdout (void) { @@ -87,3 +91,7 @@ feof_unlocked (FILE *stream) return feof (stream); } #endif + +#ifdef __cplusplus +} +#endif |