aboutsummaryrefslogtreecommitdiffstats
path: root/src/grt
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-11-20 20:32:39 +0100
committerTristan Gingold <tgingold@free.fr>2019-11-20 20:32:39 +0100
commitdb734580dbdd495097b22bfcc1de7ffd50d6a337 (patch)
tree919c4cb417a0fd20a3fb005e8d480af1af8471f1 /src/grt
parent01b133bc895d91e096ae054b5d02c1e6e54ec2e1 (diff)
downloadghdl-db734580dbdd495097b22bfcc1de7ffd50d6a337.tar.gz
ghdl-db734580dbdd495097b22bfcc1de7ffd50d6a337.tar.bz2
ghdl-db734580dbdd495097b22bfcc1de7ffd50d6a337.zip
gcc: allow to build grt-cstdio with c++.
Diffstat (limited to 'src/grt')
-rw-r--r--src/grt/grt-cstdio.c8
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