Skip to content

Commit e289097

Browse files
committed
FIX: not including winerror.h as it redefines IS_ERROR
1 parent 52cf025 commit e289097

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/core/n-image.c

+4-6
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,10 @@
3535
#include "reb-codec.h"
3636
#include "sys-magick.h" // used for `resize` native
3737
#include "sys-blur.h" // used for `blur` native
38-
#if defined(TO_WINDOWS) && defined(INCLUDE_IMAGE_OS_CODEC)
39-
#include "winerror.h" // used for WINCODEC_ERR_COMPONENTNOTFOUND
40-
#endif
41-
42-
#ifndef WINCODEC_ERR_COMPONENTNOTFOUND
43-
#define WINCODEC_ERR_COMPONENTNOTFOUND 0x88982F50L
38+
#if defined(TO_WINDOWS)
39+
# ifndef WINCODEC_ERR_COMPONENTNOTFOUND
40+
# define WINCODEC_ERR_COMPONENTNOTFOUND 0x88982F50L
41+
# endif
4442
#endif
4543

4644

0 commit comments

Comments
 (0)