diff options
author | L. E. Segovia <amy@amyspark.me> | 2023-08-14 08:53:37 -0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2023-08-14 22:57:28 +0300 |
commit | ddc1cd5cdd2570bf3d6ab807ee0ecfacdf09431d (patch) | |
tree | 4cfde97c69b3ecd6573f3f474437e27616906dc8 /libavdevice | |
parent | c7049013247ac6c4851cf1b4ad6e22f0461a775a (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 'libavdevice')
-rw-r--r-- | libavdevice/dshow_capture.h | 1 | ||||
-rw-r--r-- | libavdevice/opengl_enc.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/libavdevice/dshow_capture.h b/libavdevice/dshow_capture.h index b548cd7afc..81e684b9be 100644 --- a/libavdevice/dshow_capture.h +++ b/libavdevice/dshow_capture.h @@ -27,7 +27,6 @@ #include "avdevice.h" #define COBJMACROS -#define WIN32_LEAN_AND_MEAN #include <windows.h> #define NO_DSHOW_STRSAFE #include <dshow.h> diff --git a/libavdevice/opengl_enc.c b/libavdevice/opengl_enc.c index f9dc846bf1..1b0cf5aa8f 100644 --- a/libavdevice/opengl_enc.c +++ b/libavdevice/opengl_enc.c @@ -30,7 +30,6 @@ #include "config.h" #if HAVE_WINDOWS_H -#define WIN32_LEAN_AND_MEAN #include <windows.h> #endif #if HAVE_OPENGL_GL3_H |