Hi,
I'm maintainer of FreeBSD port of your software.
While porting new 0.9.4 version I encountered a build failure, this is
due lack of SIZE_MAX definition in stdint.h on FreeBSD platform.
Attached patch fixes issue for me and hopefully makes dealing with
SIZE_MAX absence more portable.
Tested with gcc and clang compilers.
--
pozdrawiam / with regards
Paweł Pękala
--- src/base/PdfMemoryManagement.cpp.orig 2016-07-03 09:12:06 UTC
+++ src/base/PdfMemoryManagement.cpp
@@ -34,15 +34,9 @@
#include "PdfMemoryManagement.h"
#include "PdfDefinesPrivate.h"
-#ifdef _WIN32
#ifndef SIZE_MAX
-#ifdef _WIN64
-#define SIZE_MAX _UI64_MAX
-#else
-#define SIZE_MAX UINT_MAX
-#endif
+#define SIZE_MAX std::numeric_limits<size_t>::max()
#endif
-#endif // _WIN32
#if defined(_MSC_VER) && ( _MSC_VER <= 1200 )
// errno.h isn't available in Visual C++ 6 (definitions are in stdlib.h which is already included)
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users