Author: Ghostwolf <foxxe@wtfs.net>
[ircu2.10.12-pk.git] / ircd / ircd_alloc.c
index ced748d4f24d6001239fcf5ca3452d2e681701ac..d3630123ffa095d6978ca01b07bb7f3517b8f6ca 100644 (file)
  *
  *   $Id$
  */
+#include "config.h"
+
 #include "ircd_alloc.h"
 #include "ircd_string.h"
 #include "s_debug.h"
 
 #include <assert.h>
 
-#if defined(NDEBUG)
+#if !defined(MDEBUG)
 /*
  * RELEASE: allocation functions
  */
@@ -69,7 +71,7 @@ void* MyCalloc(size_t nelem, size_t size)
   return p;
 }
 
-#else /* !defined(NDEBUG) */
+#else /* defined(MDEBUG) */
 /*
  * DEBUG: allocation functions
  */
@@ -79,5 +81,5 @@ void set_nomem_handler(OutOfMemoryHandler handler)
   fda_set_nomem_handler(handler);
 }
 
-#endif /* !defined(NDEBUG) */
+#endif /* defined(MDEBUG) */