Skip to content

Commit a969582

Browse files
committed
FIX: resolved redefinition warning
1 parent 744aceb commit a969582

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/core/n-image.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
#include "sys-core.h"
3333
#include "reb-codec.h"
3434
#include "sys-magick.h" // used for `resize` native
35-
35+
#if defined(TO_WINDOWS) && defined(USE_NATIVE_IMAGE_CODECS)
36+
#include "winerror.h" // used for WINCODEC_ERR_COMPONENTNOTFOUND
37+
#endif
3638

3739
typedef struct REBCLR {
3840
union {

src/include/reb-codec.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ enum {
110110
CODI_IMG_WEBP, //
111111
};
112112

113-
#ifndef WINCODEC_ERR_COMPONENTNOTFOUND
114-
#define WINCODEC_ERR_COMPONENTNOTFOUND 0x88982F50
115-
#endif
113+
//#ifndef WINCODEC_ERR_COMPONENTNOTFOUND
114+
//#define WINCODEC_ERR_COMPONENTNOTFOUND 0x88982F50
115+
//#endif
116116

117117
#endif

0 commit comments

Comments
 (0)