mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
. Don't expect user to define NDEBUG.
This commit is contained in:
parent
761462e4e5
commit
6ab21a586e
@ -33,6 +33,10 @@ static const char copyright[] = "copyright (c) 2003 Emil Mikulic";
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
|
||||
#ifndef DEBUG
|
||||
#define NDEBUG
|
||||
#endif
|
||||
|
||||
#ifdef __linux
|
||||
#define _GNU_SOURCE /* for strsignal() and vasprintf() */
|
||||
#include <sys/sendfile.h>
|
||||
@ -970,9 +974,9 @@ static void parse_commandline(const int argc, char *argv[])
|
||||
{
|
||||
printf("%s "
|
||||
#ifdef NDEBUG
|
||||
"NDEBUG"
|
||||
"-debug"
|
||||
#else
|
||||
"!NDEBUG"
|
||||
"+debug"
|
||||
#endif
|
||||
"\n", rcsid);
|
||||
exit(EXIT_FAILURE);
|
||||
|
Loading…
Reference in New Issue
Block a user