Re: [Podofo-users] winsock.h

2016-05-13 Thread zyx
On Thu, 2016-05-12 at 12:49 +0200, zyx wrote: > the tiffio.h is not needed in the PdfImage.h, thus > dropping it from the header file is even better solution. Hi, I committed this change as revision 1728: http://sourceforge.net/p/podofo/code/1728 Please let me know if it didn't fix the is

Re: [Podofo-users] winsock.h

2016-05-12 Thread zyx
On Thu, 2016-05-12 at 12:31 +0200, zyx wrote: > As you noted above, the patch changes PdfImage.h only, because the > PdfImage.cpp is covered by the base/PdfDefinesPrivate.h, which > includes > the winsock2.h when needed, but cannot be used in the (public) header > files. Hi again, thinking

Re: [Podofo-users] winsock.h

2016-05-12 Thread zyx
On Thu, 2016-05-12 at 11:51 +0200, Ulrich Arnold wrote: > I'm not using CMake but a handbuild podofo_config.h and a > VS2008-Solution-File to build. I have solved the problem in > podofo_config.h > by defining > > #define _WINSOCKAPI_   /* Prevent inclusion of winsock.h in windows.h > */ > > afte

[Podofo-users] winsock.h

2016-05-12 Thread Ulrich Arnold
Hi all! I've just updated to PoDoFo Revision 1724. I'm building with Microsoft VS2008 32Bit. In PdfImage.cpp I get a bunch of compiler errors due to a collision between winsock.h and ws2def.h. I have PODOFO_HAVE_WINSOCK2_H defined, so winsock2.h should be drawn instead of winsock.h in the first