summaryrefslogtreecommitdiff
path: root/src/z-rand.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/z-rand.h')
-rw-r--r--src/z-rand.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/z-rand.h b/src/z-rand.h
index 69a531b4..6ff2dc64 100644
--- a/src/z-rand.h
+++ b/src/z-rand.h
@@ -3,6 +3,10 @@
#ifndef INCLUDED_Z_RAND_H
#define INCLUDED_Z_RAND_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "h-basic.h"
@@ -84,6 +88,9 @@ extern s32b damroll(s16b num, s16b sides);
extern s32b maxroll(s16b num, s16b sides);
+#ifdef __cplusplus
+} /* extern "C" */
#endif
+#endif