dear Andrew,
when adapting the source code of version 4.44 for inclusion in my
Praat program (praat.org), I found I had to make the following three
changes:
1. in amd_internal.h, I changed
#define SIZE_T_MAX ((size_t) -1)
to
#ifndef SIZE_T_MAX
#define SIZE_T_MAX ((size_t) -1)
#endif
because SIZE_T_MAX was already defined in limits.h, which is included
in glpstd.h. The definition was ULONG_MAX (for Xcode for the Mac,
32-bit). Both definitions may or may not be correct on 64-bit
platforms.
2. In glpios09.c, I had to change char to unsigned char in line 197.
3. In all glpmpl* files, I had to change the "error" macro, defined
in glpmpl.h, into something else (more than 100 times), because
"error" is (for my CodeWarrior compiler for Windows) a member of the
FILE structure, so that one cannot #define it as something else.
best wishes,
Paul
--
Paul Boersma
Phonetic Sciences, University of Amsterdam
Spuistraat 210, room 303
1012VT Amsterdam, The Netherlands
http://www.fon.hum.uva.nl/paul/
phone +31-20-5252385
_______________________________________________
Bug-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-glpk