diff --git a/cpp/poppler-font.cpp b/cpp/poppler-font.cpp index e766b80..86dc23f 100644 --- a/cpp/poppler-font.cpp +++ b/cpp/poppler-font.cpp @@ -22,6 +22,8 @@ #include "FontInfo.h" +#include + using namespace poppler; class poppler::font_info_private diff --git a/cpp/poppler-global.cpp b/cpp/poppler-global.cpp index b0edeb8..68f4a30 100644 --- a/cpp/poppler-global.cpp +++ b/cpp/poppler-global.cpp @@ -22,6 +22,8 @@ #include "poppler-private.h" +#include + #include #include #include diff --git a/poppler/Annot.cc b/poppler/Annot.cc index d35cb9b..b511e7f 100644 --- a/poppler/Annot.cc +++ b/poppler/Annot.cc @@ -71,6 +71,7 @@ #include "DateInfo.h" #include "Link.h" #include +#include #if MULTITHREADED # define annotLocker() MutexLocker locker(&mutex) diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc index b96232f..429ec7a 100644 --- a/poppler/SplashOutputDev.cc +++ b/poppler/SplashOutputDev.cc @@ -72,6 +72,7 @@ #include "splash/SplashFontFileID.h" #include "splash/Splash.h" #include "SplashOutputDev.h" +#include #ifdef VMS #if (__VMS_VER < 70000000) diff --git a/poppler/poppler-config.h.cmake b/poppler/poppler-config.h.cmake index b087a69..5a645a2 100644 --- a/poppler/poppler-config.h.cmake +++ b/poppler/poppler-config.h.cmake @@ -186,7 +186,7 @@ char * strtok_r (char *s, const char *delim, char **save_ptr); #define GCC_PRINTF_FORMAT(fmt_index, va_index) #endif -#if defined(_MSC_VER) +#if defined(_MSC_VER) && (_MSC_VER <= 1700) #define fmax(a, b) std::max(a, b) #define fmin(a, b) std::min(a, b) #endif