diff options
Diffstat (limited to 'thirdparty/jpeg-compressor')
| -rw-r--r-- | thirdparty/jpeg-compressor/jpgd.cpp | 16 | ||||
| -rw-r--r-- | thirdparty/jpeg-compressor/patches/fix-msvc2017-build.patch | 31 | 
2 files changed, 7 insertions, 40 deletions
diff --git a/thirdparty/jpeg-compressor/jpgd.cpp b/thirdparty/jpeg-compressor/jpgd.cpp index 257d0b7574..baf6ea0484 100644 --- a/thirdparty/jpeg-compressor/jpgd.cpp +++ b/thirdparty/jpeg-compressor/jpgd.cpp @@ -37,16 +37,14 @@  #ifndef JPGD_USE_SSE2 -	#if defined(__GNUC__)  - -		#if (defined(__x86_64__) || defined(_M_X64))  -			#if defined(__SSE2__) -				#define JPGD_USE_SSE2 (1) -			#endif +	#if defined(__GNUC__) +		#if defined(__SSE2__) +			#define JPGD_USE_SSE2 (1) +		#endif +	#elif defined(_MSC_VER) +		#if defined(_M_X64) +			#define JPGD_USE_SSE2 (1)  		#endif - -	#else -		#define JPGD_USE_SSE2 (1)  	#endif  #endif diff --git a/thirdparty/jpeg-compressor/patches/fix-msvc2017-build.patch b/thirdparty/jpeg-compressor/patches/fix-msvc2017-build.patch deleted file mode 100644 index 7b338de084..0000000000 --- a/thirdparty/jpeg-compressor/patches/fix-msvc2017-build.patch +++ /dev/null @@ -1,31 +0,0 @@ -diff --git a/thirdparty/jpeg-compressor/jpgd.cpp b/thirdparty/jpeg-compressor/jpgd.cpp -index a0c494db61..257d0b7574 100644 ---- a/thirdparty/jpeg-compressor/jpgd.cpp -+++ b/thirdparty/jpeg-compressor/jpgd.cpp -@@ -2126,7 +2126,7 @@ namespace jpgd { -  - 	int jpeg_decoder::decode_next_mcu_row() - 	{ --		if (setjmp(m_jmp_state)) -+		if (::setjmp(m_jmp_state)) - 			return JPGD_FAILED; -  - 		const bool chroma_y_filtering = ((m_flags & cFlagBoxChromaFiltering) == 0) && ((m_scan_type == JPGD_YH2V2) || (m_scan_type == JPGD_YH1V2)); -@@ -3042,7 +3042,7 @@ namespace jpgd { -  - 	jpeg_decoder::jpeg_decoder(jpeg_decoder_stream* pStream, uint32_t flags) - 	{ --		if (setjmp(m_jmp_state)) -+		if (::setjmp(m_jmp_state)) - 			return; - 		decode_init(pStream, flags); - 	} -@@ -3055,7 +3055,7 @@ namespace jpgd { - 		if (m_error_code) - 			return JPGD_FAILED; -  --		if (setjmp(m_jmp_state)) -+		if (::setjmp(m_jmp_state)) - 			return JPGD_FAILED; -  - 		decode_start();  |