diff options
Diffstat (limited to 'ghw/libghw.h')
-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_ */ |