Skip to content

Commit

Permalink
COMP: itktiff: Suppress C99 inline only on MSVC from VS 2013 and below
Browse files Browse the repository at this point in the history
Extend the condition from commit 08bf6be (COMP: Conditionalize
insane "#define inline" in libtiff, 2013-10-07, v4.5rc01~139^2).
Newer MSVC versions need it to avoid duplicating `__ucrt_int_to_float`.

Issue: #4820
  • Loading branch information
bradking authored and blowekamp committed Nov 18, 2024
1 parent ee6bc26 commit 6025654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/ThirdParty/TIFF/src/itktiff/tif_config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ the sizes can be different.*/
/* MSVC does not support C99 inline, so just make the inline keyword
disappear for C. */
#ifndef __cplusplus
# ifdef _MSC_VER
# if defined(_MSC_VER) && _MSC_VER < 1900
# define inline
# endif
#endif
Expand Down

0 comments on commit 6025654

Please sign in to comment.