[poppler] 2 commits - config.h.cmake poppler/Function.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sun Feb 24 11:52:54 PST 2008


 config.h.cmake      |    4 ++++
 poppler/Function.cc |    4 ++++
 2 files changed, 8 insertions(+)

New commits:
commit 101e526c63175ffc1a75e1b68da7bb4fff9cd530
Author: Patrick Spendrin <ps_ml at gmx.de>
Date:   Sun Feb 24 20:52:41 2008 +0100

    define snprintf to _snprintf if we are building on MSVC

diff --git a/config.h.cmake b/config.h.cmake
index a496b3f..a9b58c8 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -138,6 +138,10 @@
 #define HAVE_BOOLEAN
 #endif
 
+/* MS has defined snprintf as deprecated */
+#ifdef _MSC_VER
+#define snprintf _snprintf
+#endif
 
 /* Number of bits in a file offset, on hosts where this is settable. */
 /* #undef _FILE_OFFSET_BITS */
commit f7f8ab488257c3979d20e5c0690ec5d7c2cd831b
Author: Patrick Spendrin <ps_ml at gmx.de>
Date:   Sun Feb 24 20:43:11 2008 +0100

    define M_PI in case it is not defined

diff --git a/poppler/Function.cc b/poppler/Function.cc
index dfaf04c..c7ffbe1 100644
--- a/poppler/Function.cc
+++ b/poppler/Function.cc
@@ -23,6 +23,10 @@
 #include "Error.h"
 #include "Function.h"
 
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
+
 //------------------------------------------------------------------------
 // Function
 //------------------------------------------------------------------------


More information about the poppler mailing list