G'day,
As previously agreed, I'm using the iup-l as the discussion list for
all of IM, CD and IUP. Please let me know if this policy is no
longer current.
This is a message about CD, giving a patch that I found
was necessary because of (I believe) discrepancies in the layout of
definitions in various header files due to different Zlib versions.
The current release of zlib, including a refactored minizip, is
1.2.11-r1, whereas the version in cd/src/minizip is based on version
1.1.
Here is a minimal-code, fairly-verbosely-documented patch to minizip
1.1 to conditionally add a "missing" preprocessor macro.
cheers,
sur-behoffski (Brenton Hoff)
programmer, Grouse Software
Index: src/minizip/ioapi.h
===================================================================
--- src/minizip/ioapi.h (revision 743)
+++ src/minizip/ioapi.h (working copy)
@@ -109,6 +109,25 @@
#endif
+/* Zlib is often installed by the system (via the package manager).
+ It appears that on Gentoo, the latest stable version, 1.2.11-r1,
+ lays out various definitions differently to earlier versions,
+ especially "OF", a macro that caters for ancient compilers that
+ are unable to deal with functions containing parameter list
+ declarations.
+
+ It appears that various portions of Zlib have been refactored
+ over time. However, the version of Zlib (embedded as part of
+ minizip within the CanvasDraw sources) is version 1.1, and OF
+ is apparently a casuality of the situation... with disasterous
+ results for the function prototype definitions in this file.
+
+ Add a definition here, to paper over this case. In the longer
+ term, we will port the latest minizip back into CD. */
+#ifndef OF
+# define OF(args) args
+#endif /* ndef OF */
+
#define ZLIB_FILEFUNC_SEEK_CUR (1)
#define ZLIB_FILEFUNC_SEEK_END (2)
#define ZLIB_FILEFUNC_SEEK_SET (0)
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users