diff options
Diffstat (limited to 'lib/ubc_check.h')
-rw-r--r-- | lib/ubc_check.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/ubc_check.h b/lib/ubc_check.h index 88961b9..b349bed 100644 --- a/lib/ubc_check.h +++ b/lib/ubc_check.h @@ -23,6 +23,10 @@ #ifndef UBC_CHECK_H #define UBC_CHECK_H +#if defined(__cplusplus) +extern "C" { +#endif + #include <stdint.h> #define DVMASKSIZE 1 @@ -33,5 +37,10 @@ void ubc_check(const uint32_t W[80], uint32_t dvmask[DVMASKSIZE]); #define DOSTORESTATE58 #define DOSTORESTATE65 +#define CHECK_DVMASK(_DVMASK) (0 != _DVMASK[0]) + +#if defined(__cplusplus) +} +#endif #endif /* UBC_CHECK_H */ |