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:
@@ -33,6 +33,10 @@ static const char copyright[] = "copyright (c) 2003 Emil Mikulic";
|
|||||||
static const char rcsid[] =
|
static const char rcsid[] =
|
||||||
"$Id$";
|
"$Id$";
|
||||||
|
|
||||||
|
#ifndef DEBUG
|
||||||
|
#define NDEBUG
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __linux
|
#ifdef __linux
|
||||||
#define _GNU_SOURCE /* for strsignal() and vasprintf() */
|
#define _GNU_SOURCE /* for strsignal() and vasprintf() */
|
||||||
#include <sys/sendfile.h>
|
#include <sys/sendfile.h>
|
||||||
@@ -970,9 +974,9 @@ static void parse_commandline(const int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
printf("%s "
|
printf("%s "
|
||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
"NDEBUG"
|
"-debug"
|
||||||
#else
|
#else
|
||||||
"!NDEBUG"
|
"+debug"
|
||||||
#endif
|
#endif
|
||||||
"\n", rcsid);
|
"\n", rcsid);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|||||||
Reference in New Issue
Block a user