summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-26 21:52:45 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-26 21:52:45 +0000
commit2ea484313f08eb2041274a7f5f37a3ed03fbd646 (patch)
tree554547e4298f429a070b9b25fb67db7efe71fb32 /src/common
parent9ec5fbe2735ffb4ad524f7f5c2c798872106b0aa (diff)
downloadhercules-2ea484313f08eb2041274a7f5f37a3ed03fbd646.tar.gz
hercules-2ea484313f08eb2041274a7f5f37a3ed03fbd646.tar.bz2
hercules-2ea484313f08eb2041274a7f5f37a3ed03fbd646.tar.xz
hercules-2ea484313f08eb2041274a7f5f37a3ed03fbd646.zip
fix build
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@796 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common')
-rw-r--r--src/common/mmo.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/common/mmo.h b/src/common/mmo.h
index 44069b85f..617a870e9 100644
--- a/src/common/mmo.h
+++ b/src/common/mmo.h
@@ -7,6 +7,20 @@
#include <time.h>
#include "utils.h" // _WIN32
+#if ! defined(Assert)
+#if defined(RELEASE)
+#define Assert(EX)
+#else
+// extern "C" {
+#include <assert.h>
+// }
+#if defined(_WIN32)
+#include <crtdbg.h>
+#endif
+#define Assert(EX) assert(EX)
+#endif
+#endif /* ! defined(Assert) */
+
#ifdef CYGWIN
// txtやlogなどの書き出すファイルの改行コード
#define RETCODE "\r\n" // (CR/LF:Windows系)