From e04284dc9694c53314403536a27992a9cfc655a2 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sun, 20 Feb 2011 14:53:43 +0100 Subject: Make angband.h and z-*.h headers C++-friendly. --- src/z-rand.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/z-rand.h') 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 -- cgit v1.2.3