From db734580dbdd495097b22bfcc1de7ffd50d6a337 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 20 Nov 2019 20:32:39 +0100 Subject: gcc: allow to build grt-cstdio with c++. --- src/grt/grt-cstdio.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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 #include +#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 -- cgit v1.2.3