From: Arran Cudbard-Bell Date: Tue, 16 Oct 2012 09:43:05 +0000 (+0100) Subject: Move boolean constants to libradius X-Git-Tag: release_2_2_1~251 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=483f55a4ea70831e4fd72c0f34d5c20117b26b85;p=thirdparty%2Ffreeradius-server.git Move boolean constants to libradius --- diff --git a/src/include/libradius.h b/src/include/libradius.h index 729077c0671..2973eb03804 100644 --- a/src/include/libradius.h +++ b/src/include/libradius.h @@ -37,6 +37,7 @@ RCSIDH(libradius_h, "$Id$") #include #include +#include #include #include #include @@ -47,6 +48,18 @@ RCSIDH(libradius_h, "$Id$") #endif #endif +#ifndef FALSE +#define FALSE 0 +#endif +#ifndef TRUE +/* + * This definition of true as NOT false is definitive. :) Making + * it '1' can cause problems on stupid platforms. See articles + * on C portability for more information. + */ +#define TRUE (!FALSE) +#endif + /* * Include for modules. */ diff --git a/src/include/radiusd.h b/src/include/radiusd.h index 38890a5f58b..5cd868558d5 100644 --- a/src/include/radiusd.h +++ b/src/include/radiusd.h @@ -415,18 +415,6 @@ typedef struct main_config_t { #define L_ACCT 6 #define L_CONS 128 -#ifndef FALSE -#define FALSE 0 -#endif -#ifndef TRUE -/* - * This definition of true as NOT false is definitive. :) Making - * it '1' can cause problems on stupid platforms. See articles - * on C portability for more information. - */ -#define TRUE (!FALSE) -#endif - /* for paircompare_register */ typedef int (*RAD_COMPARE_FUNC)(void *instance, REQUEST *,VALUE_PAIR *, VALUE_PAIR *, VALUE_PAIR *, VALUE_PAIR **);