#endif
#ifdef HAVE_PUTENV
-# ifdef DEBUG
+# ifndef NDEBUG
/* Activate malloc checking routines to detect heap corruptions. */
putenv( (char*)"MALLOC_CHECK_=2" );
-# ifdef __APPLE
+# ifdef __APPLE__
putenv( (char*)"MallocErrorAbort=crash_my_baby_crash" );
# endif