pineapple-src/externals/vcpkg/ports/freeimage/use-freeimage-config-include.patch

17 lines
587 B
Diff
Raw Normal View History

2022-07-23 03:01:36 +02:00
diff --git a/Source/FreeImage.h b/Source/FreeImage.h
index 12182cd..86a1e68 100644
--- a/Source/FreeImage.h
+++ b/Source/FreeImage.h
@@ -32,6 +32,11 @@
#define FREEIMAGE_MINOR_VERSION 18
#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