summaryrefslogtreecommitdiff
path: root/h/counters.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-10-02 19:24:58 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-10-02 19:24:58 +0200
commit3db384424bd7398ffbb7a355cab8f15f3add009f (patch)
tree4536961c62454aca3ac87ee88229e4d20c0d44fa /h/counters.h
parentd479dd1aab1c1cb907932c6595b0ef33523fc797 (diff)
New upstream version 1.9.1+repackupstream/1.9.1+repack
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 */