Commit de349009 authored by Ed Porras's avatar Ed Porras Committed by Albert Astals Cid

fix macOS compilation due to boolean define in jpeglib

typedef enum { FALSE = 0, TRUE = 1 } boolean;
parent be05f764
Pipeline #3749 passed with stage
in 3 minutes and 16 seconds
......@@ -11,6 +11,7 @@
// Copyright (C) 2013 Peter Breitenlohner <peb@mppmu.mpg.de>
// Copyright (C) 2017, 2018 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2018 Martin Packman <gzlist@googlemail.com>
// Copyright (C) 2018 Ed Porras <ed@motologic.com>
//
//========================================================================
......@@ -143,7 +144,7 @@ bool JpegWriter::init(FILE *f, int width, int height, int hDPI, int vDPI)
}
// Set whether to compute optimal Huffman coding tables
priv->cinfo.optimize_coding = priv->optimize;
priv->cinfo.optimize_coding = static_cast<boolean>(priv->optimize);
// Get ready for data
jpeg_start_compress(&priv->cinfo, TRUE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment