Skip to content

Commit

Permalink
Fix OpenJPEG GitHub issue #633.
Browse files Browse the repository at this point in the history
"opj_includes.h" must be included before system headers, otherwise
inconsistent definitions of configuration macros lead to build
failures on AIX.
  • Loading branch information
Stephan Mühlstrasser committed Oct 15, 2015
1 parent bd3959d commit b3c5817
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/openjp2/opj_clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "opj_includes.h"

#ifdef _WIN32
#include <windows.h>
#else
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/times.h>
#endif /* _WIN32 */
#include "opj_includes.h"

OPJ_FLOAT64 opj_clock(void) {
#ifdef _WIN32
Expand Down

0 comments on commit b3c5817

Please sign in to comment.