diff --git a/source/mjpeg_decoder.cc b/source/mjpeg_decoder.cc index b43c008bd..67568b413 100644 --- a/source/mjpeg_decoder.cc +++ b/source/mjpeg_decoder.cc @@ -13,6 +13,10 @@ #ifdef HAVE_JPEG #include +#ifdef __cplusplus +#include +#endif + #if !defined(__pnacl__) && !defined(__CLR_VER) && \ !defined(COVERAGE_ENABLED) && !defined(TARGET_IPHONE_SIMULATOR) // Must be included before jpeglib. diff --git a/util/psnr_main.cc b/util/psnr_main.cc index 4d930be4a..6d32f1f05 100644 --- a/util/psnr_main.cc +++ b/util/psnr_main.cc @@ -22,6 +22,7 @@ #define _CRT_SECURE_NO_WARNINGS #endif +#include #include #include #include diff --git a/util/yuvconvert.cc b/util/yuvconvert.cc index bc01d9ff5..7f0aadabc 100644 --- a/util/yuvconvert.cc +++ b/util/yuvconvert.cc @@ -15,6 +15,7 @@ #define _CRT_SECURE_NO_WARNINGS #endif +#include #include #include #include