From 3db384424bd7398ffbb7a355cab8f15f3add009f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 2 Oct 2016 19:24:58 +0200 Subject: New upstream version 1.9.1+repack --- h/counters.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'h/counters.h') diff --git a/h/counters.h b/h/counters.h index 0fbb11a..391dbe1 100644 --- a/h/counters.h +++ b/h/counters.h @@ -15,12 +15,16 @@ #ifndef COUNTERS_H +#ifdef __cplusplus + extern "C" { +#endif + /* ------------------------------------------------------- */ /* Macros for a multi-dimensional counter. */ /* Declare the counter name nn, maximum di mxdi, dimensions di, & count */ -#define DCOUNT(nn, mxdi, di, start, reset, endp1) \ - int nn[mxdi]; /* counter value */ \ +#define DCOUNT(nn, mxdi, di, start, reset, endp1) \ + int nn[mxdi]; /* counter value */ \ int nn##_di = (di); /* Number of dimensions */ \ int nn##_stt = (start); /* start count value */ \ int nn##_rst = (reset); /* reset on carry value */ \ @@ -256,5 +260,9 @@ /* - - - - - - - - - - - - - - - - - - - - - - - - - - */ +#ifdef __cplusplus + } +#endif + #define COUNTERS_H #endif /* COUNTERS_H */ -- cgit v1.2.3