[BACK]Return to patch-src_xercesc_util_Base64.cpp CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / textproc / xerces-c / patches

File: [cvs.NetBSD.org] / pkgsrc / textproc / xerces-c / patches / patch-src_xercesc_util_Base64.cpp (download)

Revision 1.1, Wed Sep 13 21:10:35 2017 UTC (3 years ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, HEAD

Make sure SIZE_MAX actually exists.

$NetBSD: patch-src_xercesc_util_Base64.cpp,v 1.1 2017/09/13 21:10:35 joerg Exp $

--- src/xercesc/util/Base64.cpp.orig	2017-09-12 21:32:28.227017311 +0000
+++ src/xercesc/util/Base64.cpp
@@ -15,6 +15,8 @@
  * limitations under the License.
  */
 
+#define __STDC_LIMIT_MACROS
+
 // ---------------------------------------------------------------------------
 //  Includes
 // ---------------------------------------------------------------------------
@@ -23,6 +25,7 @@
 #include <xercesc/util/Janitor.hpp>
 #include <xercesc/internal/XMLReader.hpp>
 #include <xercesc/framework/MemoryManager.hpp>
+#include <cstdint>
 
 XERCES_CPP_NAMESPACE_BEGIN