[m-rev.] diff: fix boehm_gc compilation error with with Visual C
Julien Fischer
juliensf at csse.unimelb.edu.au
Fri Jul 15 15:49:01 AEST 2011
Branches: main, 11.07
boehm_gc/misc.c:
Avoid the use of ssize_t with Visual C.
Julien.
Index: misc.c
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/boehm_gc/misc.c,v
retrieving revision 1.21
diff -u -r1.21 misc.c
--- misc.c 12 Jul 2011 00:50:42 -0000 1.21
+++ misc.c 15 Jul 2011 05:46:29 -0000
@@ -1690,8 +1690,13 @@
GC_API void GC_CALL GC_mercury_write_size_map(FILE *fp)
{
- ssize_t bytes;
- ssize_t limit;
+ #if defined(_WIN32)
+ SSIZE_T bytes;
+ SSIZE_T limit;
+ #else
+ ssize_t bytes;
+ ssize_t limit;
+ #endif
for (limit = MAXOBJBYTES; limit >= 0; limit--) {
if (GC_size_map[limit] != 0) {
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to: mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions: mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the reviews
mailing list