Skip to content

Commit

Permalink
FIX: resolved redefinition warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Jan 13, 2021
1 parent 744aceb commit a969582
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/core/n-image.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
#include "sys-core.h"
#include "reb-codec.h"
#include "sys-magick.h" // used for `resize` native

#if defined(TO_WINDOWS) && defined(USE_NATIVE_IMAGE_CODECS)
#include "winerror.h" // used for WINCODEC_ERR_COMPONENTNOTFOUND
#endif

typedef struct REBCLR {
union {
Expand Down
6 changes: 3 additions & 3 deletions src/include/reb-codec.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ enum {
CODI_IMG_WEBP, //
};

#ifndef WINCODEC_ERR_COMPONENTNOTFOUND
#define WINCODEC_ERR_COMPONENTNOTFOUND 0x88982F50
#endif
//#ifndef WINCODEC_ERR_COMPONENTNOTFOUND
//#define WINCODEC_ERR_COMPONENTNOTFOUND 0x88982F50
//#endif

#endif

0 comments on commit a969582

Please sign in to comment.