]> 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:56:59 +0000 (10:56 +0100)
src/include/libradius.h
src/include/radiusd.h

index 729077c067133807e3a9df75099a091478abebaa..2973eb03804f7150d7819e1e60ee04b1ba9b91e6 100644 (file)
@@ -37,6 +37,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>
@@ -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.
  */
index 38890a5f58b99ae88e977e034b29720af17ad63f..5cd868558d5e304d47756867b8bfff0936bbb7d9 100644 (file)
@@ -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 **);