void-packages/srcpkgs/freeimage/patches/no-windows.patch
Đoàn Trần Công Danh 41ce1421fd freeimage: remove _WINDOWS_ definition
That macro indicates this is Windows OS, and breaks SLADE with wxWidgets
3.2.1
2022-09-26 23:34:33 +07:00

15 lines
472 B
Diff

_WINDOWS_ is pre-defined macro definition for Windows OS
Other libraries detect build on Windows by this macro
Fix SLADE with wxWidgets 3.2
Index: FreeImage/Source/FreeImage.h
===================================================================
--- FreeImage.orig/Source/FreeImage.h
+++ FreeImage/Source/FreeImage.h
@@ -129,7 +129,6 @@ FI_STRUCT (FIMULTIBITMAP) { void *data;
#endif // __MINGW32__
#ifndef _WINDOWS_
-#define _WINDOWS_
#ifndef FALSE
#define FALSE 0