Skip to content

Commit 9a17b10

Browse files
committed
Properly fix openjpeg building
1 parent 9268dac commit 9a17b10

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Utilities/gdcmopenjpeg/src/lib/openjp2/j2k.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343

4444
#include "opj_includes.h"
4545

46+
#if defined(_MSC_VER) && (_MSC_VER < 1900)
47+
#define snprintf _snprintf
48+
#endif
49+
4650
/** @defgroup J2K J2K - JPEG-2000 codestream reader/writer */
4751
/*@{*/
4852

Utilities/gdcmopenjpeg/src/lib/openjp2/opj_includes.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ static INLINE long opj_lrintf(float f)
180180
#endif
181181

182182
#if defined(_MSC_VER) && (_MSC_VER < 1400)
183-
#define snprintf _snprintf
184183
#define vsnprintf _vsnprintf
185184
#endif
186185

0 commit comments

Comments
 (0)