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 /libavformat/os_support.c | |
parent | c7049013247ac6c4851cf1b4ad6e22f0461a775a (diff) | |
download | ffmpeg-ddc1cd5cdd2570bf3d6ab807ee0ecfacdf09431d.tar.gz |
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 'libavformat/os_support.c')
-rw-r--r-- | libavformat/os_support.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/os_support.c b/libavformat/os_support.c index 15cea7fa5b..2de6a7c3d9 100644 --- a/libavformat/os_support.c +++ b/libavformat/os_support.c @@ -34,11 +34,9 @@ #if HAVE_SYS_TIME_H #include <sys/time.h> #endif /* HAVE_SYS_TIME_H */ -#if HAVE_WINSOCK2_H -#include <winsock2.h> -#elif HAVE_SYS_SELECT_H +#if HAVE_SYS_SELECT_H #include <sys/select.h> -#endif /* HAVE_WINSOCK2_H */ +#endif /* HAVE_SYS_SELECT_H */ #endif /* !HAVE_POLL_H */ #include "network.h" |