summaryrefslogtreecommitdiff
path: root/src/z-rand.h
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2011-02-20 14:53:43 +0100
committerBardur Arantsson <bardur@scientician.net>2011-02-20 15:54:50 +0100
commite04284dc9694c53314403536a27992a9cfc655a2 (patch)
tree9daeb79e07658b7c7c2551c1d8da5b2c403283e7 /src/z-rand.h
parent2aacf84f424399d201f99a7ced0f2fcc4571f04f (diff)
Make angband.h and z-*.h headers C++-friendly.
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