diff --git a/reaction/code/qcommon/q_shared.h b/reaction/code/qcommon/q_shared.h
index 2f368590..0418fafd 100644
--- a/reaction/code/qcommon/q_shared.h
+++ b/reaction/code/qcommon/q_shared.h
@@ -304,7 +304,7 @@ typedef enum {
 #define UI_INVERSE		0x00002000
 #define UI_PULSE		0x00004000
 
-#if defined(_DEBUG) && !defined(BSPC)
+#if !defined(NDEBUG) && !defined(BSPC)
 	#define HUNK_DEBUG
 #endif
 
diff --git a/reaction/code/qcommon/qcommon.h b/reaction/code/qcommon/qcommon.h
index 5466187b..2c4a7c0e 100644
--- a/reaction/code/qcommon/qcommon.h
+++ b/reaction/code/qcommon/qcommon.h
@@ -919,7 +919,7 @@ temp file loading
 
 */
 
-#if defined(_DEBUG) && !defined(BSPC)
+#if !defined(NDEBUG) && !defined(BSPC)
 	#define ZONE_DEBUG
 #endif