summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2011-12-28 22:40:33 +0100
committerJay Berkenbilt <ejb@ql.org>2011-12-28 22:40:33 +0100
commit92f0207de8f31121735ac183f8e0abed013c3aab (patch)
tree00f3542b606b10f4a595a6a6d2de234651e1b57b
parent11314a9551b66921ad7fa4f977ca17c1f5ed3030 (diff)
downloadqpdf-92f0207de8f31121735ac183f8e0abed013c3aab.tar.zst
fix MSVC 2010 issues
-rw-r--r--ChangeLog2
-rw-r--r--libqpdf/qpdf/MD5.hh3
-rw-r--r--libqpdf/qpdf/rijndael.h3
3 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 81e3ee02..7ba8d284 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2011-12-28 Jay Berkenbilt <ejb@ql.org>
+ * include <stdint.h> if available to support MSVC 2010
+
* Since PCRE is not necessarily thread safe, don't declare any
PCRE objects to be static.
diff --git a/libqpdf/qpdf/MD5.hh b/libqpdf/qpdf/MD5.hh
index ebdd118d..ef454def 100644
--- a/libqpdf/qpdf/MD5.hh
+++ b/libqpdf/qpdf/MD5.hh
@@ -7,6 +7,9 @@
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
class MD5
{
diff --git a/libqpdf/qpdf/rijndael.h b/libqpdf/qpdf/rijndael.h
index 22037e1e..a9cd71da 100644
--- a/libqpdf/qpdf/rijndael.h
+++ b/libqpdf/qpdf/rijndael.h
@@ -5,6 +5,9 @@
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
int rijndaelSetupEncrypt(uint32_t *rk, const unsigned char *key,
int keybits);