Fix values for true/false and boolean type
---
 cde/programs/dtprintinfo/libUI/BaseUI.h    |    7 +++++--
 cde/programs/dtprintinfo/objects/BaseObj.h |    7 +++++--
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/cde/programs/dtprintinfo/libUI/BaseUI.h 
b/cde/programs/dtprintinfo/libUI/BaseUI.h
index 0a83a9f..66e0aff 100644
--- a/cde/programs/dtprintinfo/libUI/BaseUI.h
+++ b/cde/programs/dtprintinfo/libUI/BaseUI.h
@@ -40,10 +40,13 @@
   #define boolean boolean_t
   #define true B_TRUE
   #define false B_FALSE
-#elif defined(linux) || defined(CSRG_BASED)
+#elif defined(linux)
   #define false 0
-  #define true 0
+  #define true 1
   #define boolean int
+#elif defined(CSRG_BASED)
+#include <stdbool.h>
+#define boolean bool
 #else
   typedef enum
   {
diff --git a/cde/programs/dtprintinfo/objects/BaseObj.h 
b/cde/programs/dtprintinfo/objects/BaseObj.h
index 7925eec..c85cd03 100644
--- a/cde/programs/dtprintinfo/objects/BaseObj.h
+++ b/cde/programs/dtprintinfo/objects/BaseObj.h
@@ -41,10 +41,13 @@
   #define boolean boolean_t
   #define true B_TRUE
   #define false B_FALSE
-#elif defined(linux) || defined(CSRG_BASED)
+#elif defined(linux)
   #define false 0
-  #define true 0
+  #define true 1
   #define boolean int
+#elif defined(CSRG_BASED)
+#include <stdbool.h>
+#define boolean bool
 #else
   typedef enum
   {
-- 
1.7.9.2


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to