http://qs321.pair.com?node_id=181992


in reply to Re: Re: Compiling Tk::PNG on win32 (complications, more c/xs than perl)
in thread Compiling Tk::PNG on win32 (complications, more c/xs than perl)

Indeed, there were two exactly same places with that incompatibilities between Borland C++ and MSVC++ compilers, and I forgot to mention them earlier. In order to compile, I edited that file in error (zconf.h) in two places just to throw away a couple of lines for Borland compiler some version, so I stepped forward, and that was like a right direction.

Seems to me like "MakeMaker" is to blame here. Although I saw following places:

#if (defined(__BORLANDC__)&&(__BORLANDC__<=0x520)) \ || (defined(__MINGW32__) && !defined(_ANONYMOUS_UNION)) ....... #endif
in perl source code distribution, which are essentially same as we faced.

BTW do you wish for me to email my build directory for reference? It's ~1Mb in size.

addition: may be we should prepare compatibility patch for miscellaneous compilers on win32 systems and sent it to author of a module?

Courage, the Cowardly Dog