[m-rev.] for review: curs.m and ncurses bool conflict
Peter Wang
wangp at students.cs.mu.OZ.AU
Mon Dec 13 15:44:19 AEDT 2004
For review by anyone.
curs.m doesn't compile with mmc --debug at the moment. I don't know if
this hack will break something.
Estimated time taken: 0.1 hours
Branches: main
extras/curs/curs.m:
#undef bool as ncurses.h #defines its own version of `bool' which
conflicts with the use of the word `bool' in the MR_BOOL_CTOR_ADDR
macro.
Index: curs.m
===================================================================
RCS file: /home/mercury1/repository/mercury/extras/curs/curs.m,v
retrieving revision 1.5
diff -u -r1.5 curs.m
--- curs.m 2 Dec 2004 03:22:03 -0000 1.5
+++ curs.m 13 Dec 2004 04:36:50 -0000
@@ -379,6 +379,12 @@
#include <panel.h>
/*
+ ** ncurses.h #defines its own version of `bool' which conflicts with
+ ** the use of the word `bool' in the MR_BOOL_CTOR_ADDR macro.
+ */
+#undef bool
+
+ /*
** XXX We assume 64 available colour pairs and that the COLOR_s
** are assigned 0..7 (this is true in ncurses.h)
*/
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list