On Thu, Apr 24, 2008 at 12:53 AM, Platonides Platonides@gmail.com wrote:
Bryan Tong Minh wrote:
Well, I had some general problems getting MinGW to work...
It's a bit hard to get the right downloads, but then it works like a charm. After all, it's gcc ;)
But, luckily after getting very irritated about the fact that MSVC9 misses some C99 features, I managed to get it compiling on Microsoft Visual C++ 9 Express.
I see you removed the packed attribute on r33599, which would need to be done differently on MSVC. But not having the structure packing although manually aligned for now, could give surprises on the future. I'll try to make a patch which conditionally works for both compilers.
Not really... The PNG header will always stay 13 bytes, even in newer versions, at least according to the specs. Note that I now use sizeof(pngheader) for malloc and a hardcoded 13 for fread. Or are there other foreseeable surprises?
I committed a handler as extensions/PNGHandler.
Bryan