--- embedaddon/lighttpd/src/settings.h 2014/06/15 20:20:06 1.1.1.2 +++ embedaddon/lighttpd/src/settings.h 2016/11/02 10:35:00 1.1.1.3 @@ -1,20 +1,15 @@ #ifndef _LIGHTTPD_SETTINGS_H_ #define _LIGHTTPD_SETTINGS_H_ +#include "first.h" -#ifndef _GNU_SOURCE -# define _GNU_SOURCE -#endif - -#ifndef __USE_GNU -# define __USE_GNU /* a hack in my eyes, F_SETSIG should work with _GNU_SOURCE */ -#endif - #ifdef __GNUC__ # define LI_NORETURN __attribute__((noreturn)) #else # define LI_NORETURN #endif +#define UNUSED(x) ( (void)(x) ) + #define BV(x) (1 << x) #define INET_NTOP_CACHE_MAX 4 @@ -50,14 +45,5 @@ typedef enum { HANDLER_UNSET, } handler_t; #define HTTP_LINGER_TIMEOUT 5 - -/* we use it in a enum */ -#ifdef TRUE -#undef TRUE -#endif - -#ifdef FALSE -#undef FALSE -#endif #endif