diff options
author | Matt Waltz <matthewwaltzis@gmail.com> | 2021-09-12 22:40:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-13 07:40:38 +0200 |
commit | 95cbcc921d92d58dbd25d328de60c18976083d2a (patch) | |
tree | c169efc849fc3e9416505155f8ba0a81ee7855f5 /ghw | |
parent | 2addd7c5f4b66be073f6883f4693e8adec35f8b6 (diff) | |
download | ghdl-95cbcc921d92d58dbd25d328de60c18976083d2a.tar.gz ghdl-95cbcc921d92d58dbd25d328de60c18976083d2a.tar.bz2 ghdl-95cbcc921d92d58dbd25d328de60c18976083d2a.zip |
add cpp header check for libghw (#1861)
Diffstat (limited to 'ghw')
-rw-r--r-- | ghw/libghw.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ghw/libghw.h b/ghw/libghw.h index 4668b9252..86b318b78 100644 --- a/ghw/libghw.h +++ b/ghw/libghw.h @@ -26,6 +26,10 @@ #include "config.h" #endif +#ifdef __cplusplus +extern "C" { +#endif + /* The libghw uses the standard c99 int32_t and int64_t. They are declared in stdint.h. Header inttypes.h includes stdint.h and provides macro for printf and co specifiers. Use it if known to be available. */ @@ -469,4 +473,9 @@ void ghw_disp_range (union ghw_type *type, union ghw_range *rng); void ghw_disp_type (struct ghw_handler *h, union ghw_type *t); void ghw_disp_types (struct ghw_handler *h); + +#ifdef __cplusplus +} +#endif + #endif /* _LIBGHW_H_ */ |