Commit 92f0207de8f31121735ac183f8e0abed013c3aab

Authored by Jay Berkenbilt
1 parent 11314a95

fix MSVC 2010 issues

ChangeLog
1 2011-12-28 Jay Berkenbilt <ejb@ql.org> 1 2011-12-28 Jay Berkenbilt <ejb@ql.org>
2 2
  3 + * include <stdint.h> if available to support MSVC 2010
  4 +
3 * Since PCRE is not necessarily thread safe, don't declare any 5 * Since PCRE is not necessarily thread safe, don't declare any
4 PCRE objects to be static. 6 PCRE objects to be static.
5 7
libqpdf/qpdf/MD5.hh
@@ -7,6 +7,9 @@ @@ -7,6 +7,9 @@
7 #ifdef HAVE_INTTYPES_H 7 #ifdef HAVE_INTTYPES_H
8 # include <inttypes.h> 8 # include <inttypes.h>
9 #endif 9 #endif
  10 +#ifdef HAVE_STDINT_H
  11 +# include <stdint.h>
  12 +#endif
10 13
11 class MD5 14 class MD5
12 { 15 {
libqpdf/qpdf/rijndael.h
@@ -5,6 +5,9 @@ @@ -5,6 +5,9 @@
5 #ifdef HAVE_INTTYPES_H 5 #ifdef HAVE_INTTYPES_H
6 # include <inttypes.h> 6 # include <inttypes.h>
7 #endif 7 #endif
  8 +#ifdef HAVE_STDINT_H
  9 +# include <stdint.h>
  10 +#endif
8 11
9 int rijndaelSetupEncrypt(uint32_t *rk, const unsigned char *key, 12 int rijndaelSetupEncrypt(uint32_t *rk, const unsigned char *key,
10 int keybits); 13 int keybits);