vcpkg/ports/freeimage/use-freeimage-config-include.patch

17 lines
587 B
Diff
Raw Normal View History

diff --git a/Source/FreeImage.h b/Source/FreeImage.h
index cc66b7d..cc66812 100644
--- a/Source/FreeImage.h
+++ b/Source/FreeImage.h
@@ -32,6 +32,11 @@
#define FREEIMAGE_MINOR_VERSION 17
#define FREEIMAGE_RELEASE_SERIAL 0
+// vcpkg specific includes --------------------------------------------------
+// Include FreeImageConfig.h to define FREEIMAGE_LIB in static builds,
+// or do not define it in dynamic builds
+#include "FreeImageConfig.h"
+
// Compiler options ---------------------------------------------------------
#include <wchar.h> // needed for UNICODE functions