History

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

L. E. Segovia committed 3 years ago

Commit ddc1cd51 parent c7049019 files · +5 −11Browse files

Showing the changes to libavformat (1 of 9 files). Show all

Unified · Split

libavformat/os_support.c+2−4
@@ -34,11 +34,9 @@ · 33 unmodified lines
3434 #if HAVE_SYS_TIME_H
3535 #include <sys/time.h>
3636 #endif /* HAVE_SYS_TIME_H */
37−#if HAVE_WINSOCK2_H
38−#include <winsock2.h>
39−#elif HAVE_SYS_SELECT_H
37+#if HAVE_SYS_SELECT_H
4038 #include <sys/select.h>
41−#endif /* HAVE_WINSOCK2_H */
39+#endif /* HAVE_SYS_SELECT_H */
4240 #endif /* !HAVE_POLL_H */
4341
4442 #include "network.h"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t