Some changes to support mingw-w64

- IPP is disabled by default when compiler is mingw (couldn't make it
work)
- fixed some warnings
- fixed some `__GNUC__` version checks (for correctness and convenience)
- removed UTF-8 BOM from hough.cpp (fixes #5253)
This commit is contained in:
Maksim Shabunin
2015-09-01 00:59:08 +03:00
parent c223c05b82
commit 771af4f32d
14 changed files with 34 additions and 25 deletions

View File

@@ -213,7 +213,7 @@ ImageDecoder JpegDecoder::newDecoder() const
bool JpegDecoder::readHeader()
{
bool result = false;
volatile bool result = false;
close();
JpegState* state = new JpegState;

View File

@@ -140,7 +140,7 @@ void PngDecoder::readDataFromBuf( void* _png_ptr, uchar* dst, size_t size )
bool PngDecoder::readHeader()
{
bool result = false;
volatile bool result = false;
close();
png_structp png_ptr = png_create_read_struct( PNG_LIBPNG_VER_STRING, 0, 0, 0 );