Browse Source

daemon: unified check for debug macros

Evgeny Grin (Karlson2k) 2 years ago
parent
commit
bb80be696b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/microhttpd/daemon.c

+ 2 - 2
src/microhttpd/daemon.c

@@ -7264,12 +7264,12 @@ MHD_start_daemon_va (unsigned int flags,
            || (NULL != daemon->notify_connection)) )
     *pflags |= MHD_USE_ITC; /* requires ITC */
 
-#ifndef NDEBUG
+#ifdef _DEBUG
 #ifdef HAVE_MESSAGES
   MHD_DLOG (daemon,
             _ ("Using debug build of libmicrohttpd.\n") );
 #endif /* HAVE_MESSAGES */
-#endif /* ! NDEBUG */
+#endif /* _DEBUG */
 
   if ( (0 != (*pflags & MHD_USE_ITC))
 #if defined(MHD_USE_POSIX_THREADS) || defined(MHD_USE_W32_THREADS)