Skip to content

Commit

Permalink
COMP: Conditionalize insane "#define inline" in libtiff
Browse files Browse the repository at this point in the history
This was causing mysterious linker errors if building
against the OS X 10.9 SDK.  Limit it to MS compiler,
which does not support 'inline' in C.

Suggested-by: Sean McBride <[email protected]>

http://review.source.kitware.com/#/c/12924/3

Change-Id: Ic72f744d0b9b68412d65792ca1430a9151d7080a
  • Loading branch information
thewtex committed Oct 7, 2013
1 parent 82b6765 commit 08bf6be
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Modules/ThirdParty/TIFF/src/itktiff/tif_config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -455,11 +455,12 @@ the sizes can be different.*/
/* Define to empty if `const' does not conform to ANSI C. */
#cmakedefine const

/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
/* MSVC does not support C99 inline, so just make the inline keyword
disappear for C. */
#ifndef __cplusplus
#define inline
//#cmakedefine inline
# ifdef _MSC_VER
# define inline
# endif
#endif

/* Define to `long int' if <sys/types.h> does not define. */
Expand Down

0 comments on commit 08bf6be

Please sign in to comment.