summaryrefslogtreecommitdiff
path: root/libswscale
diff options
context:
space:
mode:
authorL. E. Segovia <amy@amyspark.me>2023-08-14 08:53:37 -0300
committerMartin Storsjö <martin@martin.st>2023-08-14 22:57:28 +0300
commitddc1cd5cdd2570bf3d6ab807ee0ecfacdf09431d (patch)
tree4cfde97c69b3ecd6573f3f474437e27616906dc8 /libswscale
parentc7049013247ac6c4851cf1b4ad6e22f0461a775a (diff)
configure: Set WIN32_LEAN_AND_MEAN at configure time
Including winsock2.h or windows.h without WIN32_LEAN_AND_MEAN cause bzlib.h to parse as nonsense, due to an instance of #define char small in rpcndr.h. See: https://stackoverflow.com/a/27794577 Signed-off-by: L. E. Segovia <amy@amyspark.me> Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/utils.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c
index 8fe34a3437..8e74c6603e 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -34,7 +34,6 @@
#endif
#endif
#if HAVE_VIRTUALALLOC
-#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif