Skip to content

Commit

Permalink
Fix MinGW build
Browse files Browse the repository at this point in the history
jinclude.h can't be safely included multiple times, so instead of
including it in the shared (broken-out) headers, it should instead be
included by the source files that include one or more of those headers.
  • Loading branch information
dcommander committed Feb 6, 2016
1 parent 8ff67fd commit ce0dd94
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion jdapistd.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This file was part of the Independent JPEG Group's software:
* Copyright (C) 1994-1996, Thomas G. Lane.
* libjpeg-turbo Modifications:
* Copyright (C) 2010, 2015, D. R. Commander.
* Copyright (C) 2010, 2015-2016, D. R. Commander.
* Copyright (C) 2015, Google, Inc.
* For conditions of distribution and use, see the accompanying README.ijg
* file.
Expand All @@ -18,6 +18,7 @@
* whole decompression library into a transcoder.
*/

#include "jinclude.h"
#include "jdmainct.h"
#include "jdcoefct.h"
#include "jdsample.h"
Expand Down
3 changes: 2 additions & 1 deletion jdcoefct.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Copyright (C) 1994-1997, Thomas G. Lane.
* libjpeg-turbo Modifications:
* Copyright 2009 Pierre Ossman <[email protected]> for Cendio AB
* Copyright (C) 2010, 2015, D. R. Commander.
* Copyright (C) 2010, 2015-2016, D. R. Commander.
* For conditions of distribution and use, see the accompanying README.ijg
* file.
*
Expand All @@ -18,6 +18,7 @@
* Also, the input side (only) is used when reading a file for transcoding.
*/

#include "jinclude.h"
#include "jdcoefct.h"
#include "jpegcomp.h"

Expand Down
1 change: 0 additions & 1 deletion jdcoefct.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*/

#define JPEG_INTERNALS
#include "jinclude.h"
#include "jpeglib.h"


Expand Down
3 changes: 2 additions & 1 deletion jdmainct.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This file was part of the Independent JPEG Group's software:
* Copyright (C) 1994-1996, Thomas G. Lane.
* libjpeg-turbo Modifications:
* Copyright (C) 2010, D. R. Commander.
* Copyright (C) 2010, 2016, D. R. Commander.
* For conditions of distribution and use, see the accompanying README.ijg
* file.
*
Expand All @@ -16,6 +16,7 @@
* supplies the equivalent of the main buffer in that case.
*/

#include "jinclude.h"
#include "jdmainct.h"


Expand Down
1 change: 0 additions & 1 deletion jdmainct.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

#define JPEG_INTERNALS
#include "jinclude.h"
#include "jpeglib.h"
#include "jpegcomp.h"

Expand Down
3 changes: 2 additions & 1 deletion jdsample.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Copyright (C) 1991-1996, Thomas G. Lane.
* libjpeg-turbo Modifications:
* Copyright 2009 Pierre Ossman <[email protected]> for Cendio AB
* Copyright (C) 2010, 2015, D. R. Commander.
* Copyright (C) 2010, 2015-2016, D. R. Commander.
* Copyright (C) 2014, MIPS Technologies, Inc., California
* For conditions of distribution and use, see the accompanying README.ijg
* file.
Expand All @@ -23,6 +23,7 @@
* Pub. by IEEE Computer Society Press, Los Alamitos, CA. ISBN 0-8186-8944-7.
*/

#include "jinclude.h"
#include "jdsample.h"
#include "jsimd.h"
#include "jpegcomp.h"
Expand Down
1 change: 0 additions & 1 deletion jdsample.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

#define JPEG_INTERNALS
#include "jinclude.h"
#include "jpeglib.h"


Expand Down

0 comments on commit ce0dd94

Please sign in to comment.