Skip to content

Commit c84b671

Browse files
committed
Check for defines in oswrapper_image
1 parent b5fe050 commit c84b671

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

oswrapper_image.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,12 @@ OSWRAPPER_IMAGE_DEF unsigned char* oswrapper_image_load_from_path(const char* pa
354354
#if defined(__cplusplus) && !defined(CINTERFACE)
355355
#define CINTERFACE
356356
#endif
357+
#ifndef COBJMACROS
357358
#define COBJMACROS
359+
#endif
360+
#ifndef WIN32_LEAN_AND_MEAN
358361
#define WIN32_LEAN_AND_MEAN
362+
#endif
359363
#include "wincodec.h"
360364

361365
#if defined(WINCODEC_SDK_VERSION2) && WINCODEC_SDK_VERSION >= WINCODEC_SDK_VERSION2

0 commit comments

Comments
 (0)