]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Move boolean constants to libradius
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 16 Oct 2012 09:43:05 +0000 (10:43 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 16 Oct 2012 09:43:05 +0000 (10:43 +0100)
src/include/libradius.h
src/include/radiusd.h

index 3e1b87f5e183a0332154ac80b596f7e3c24da629..e23873bccf9ce66fa5f172e428125643763f1054 100644 (file)
@@ -38,6 +38,7 @@ RCSIDH(libradius_h, "$Id$")
 #include <stdlib.h>
 #include <stdarg.h>
 
+#include <freeradius-devel/bool.h>
 #include <freeradius-devel/radius.h>
 #include <freeradius-devel/token.h>
 #include <freeradius-devel/hash.h>
@@ -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.
  */
index 5ca235cc0965830e0910e57e1991648d1636ffe4..700c105ba2a95ef3e3d535f423864206a86878bf 100644 (file)
@@ -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 **);