summaryrefslogtreecommitdiff
path: root/h/counters.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-10-02 19:25:17 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-10-02 19:25:17 +0200
commitc2ca7be5a751879159f3cb591a64bb9568b79762 (patch)
tree04e38d4f4a2aad4d789bda0a65b7abb80a3439a2 /h/counters.h
parent45c152c326d87478fbf41714b4b8e2f7b57a282b (diff)
parent3db384424bd7398ffbb7a355cab8f15f3add009f (diff)
Updated version 1.9.1+repack from 'upstream/1.9.1+repack'
with Debian dir 98a996367aa69ae41accf9c6d369f600bc94de80
Diffstat (limited to 'h/counters.h')
-rw-r--r--h/counters.h12
1 files changed, 10 insertions, 2 deletions
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 */