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: InsightSoftwareConsortium#4820
  • Loading branch information
bradking committed Nov 17, 2024
1 parent f403aa6 commit fe61845
Showing 1 changed file with 1 addition and 1 deletion.
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 fe61845

Please sign in to comment.