From: Arran Cudbard-Bell Date: Tue, 16 Oct 2012 09:43:05 +0000 (+0100) Subject: Move boolean constants to libradius X-Git-Tag: release_3_0_0_beta1~1660^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0474a4680a4d3c6f2fa5fd51dae8995ddfe7236;p=thirdparty%2Ffreeradius-server.git Move boolean constants to libradius --- diff --git a/src/include/libradius.h b/src/include/libradius.h index 3e1b87f5e18..e23873bccf9 100644 --- a/src/include/libradius.h +++ b/src/include/libradius.h @@ -38,6 +38,7 @@ RCSIDH(libradius_h, "$Id$") #include #include +#include #include #include #include @@ -48,6 +49,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 5ca235cc096..700c105ba2a 100644 --- a/src/include/radiusd.h +++ b/src/include/radiusd.h @@ -522,18 +522,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 **);