Skip to content

Commit

Permalink
Move INLINE macro into config.h. That's really where it belongs anyho…
Browse files Browse the repository at this point in the history
…w, since it is used only internally, and putting it in jconfig.h was causing problems with DevIL.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@739 632fc199-4ca6-4c93-a231-07263d6284db
  • Loading branch information
dcommander committed Jan 26, 2012
1 parent 81a50f7 commit a7466c9
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 13 deletions.
5 changes: 5 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ and pixel formats (TurboJPEG API), which allow applications to specify that,
when decompressing to a 4-component RGB buffer, the unused byte should be set
to 0xFF so that it can be interpreted as an opaque alpha channel.

[5] Fixed regression issue whereby DevIL failed to build against libjpeg-turbo
because libjpeg-turbo's distributed version of jconfig.h contained an INLINE
macro, which conflicted with a similar macro in DevIL. This macro is used only
internally when building libjpeg-turbo, so it was moved into config.h.


1.1.90 (1.2 beta1)
==================
Expand Down
1 change: 1 addition & 0 deletions jccolor.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "jinclude.h"
#include "jpeglib.h"
#include "jsimd.h"
#include "config.h"


/* Private subobject */
Expand Down
3 changes: 0 additions & 3 deletions jconfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
/* Compiler does not support pointers to unspecified structures. */
#undef INCOMPLETE_TYPES_BROKEN

/* How to obtain function inlining. */
#undef INLINE

/* Compiler has <strings.h> rather than standard <string.h>. */
#undef NEED_BSD_STRINGS

Expand Down
1 change: 1 addition & 0 deletions jdcolor.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "jinclude.h"
#include "jpeglib.h"
#include "jsimd.h"
#include "config.h"


/* Private subobject */
Expand Down
1 change: 1 addition & 0 deletions jdmerge.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include "jinclude.h"
#include "jpeglib.h"
#include "jsimd.h"
#include "config.h"

#ifdef UPSAMPLE_MERGING_SUPPORTED

Expand Down
10 changes: 10 additions & 0 deletions win/config.h.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
#define VERSION "@VERSION@"
#define BUILD "@BUILD@"
#define PACKAGE_NAME "@CMAKE_PROJECT_NAME@"

#ifndef INLINE
#if defined(__GNUC__)
#define INLINE __attribute__((always_inline))
#elif defined(_MSC_VER)
#define INLINE __forceinline
#else
#define INLINE
#endif
#endif
10 changes: 0 additions & 10 deletions win/jconfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,6 @@ typedef signed int INT32;
#endif
#define XMD_H /* prevent jmorecfg.h from redefining it */

#ifndef INLINE
#if defined(__GNUC__)
#define INLINE __attribute__((always_inline))
#elif defined(_MSC_VER)
#define INLINE __forceinline
#else
#define INLINE
#endif
#endif

#ifdef JPEG_INTERNALS

#undef RIGHT_SHIFT_IS_UNSIGNED
Expand Down

0 comments on commit a7466c9

Please sign in to comment.