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
34#if HAVE_SYS_TIME_H34#if HAVE_SYS_TIME_H
35#include <sys/time.h>35#include <sys/time.h>
36#endif /* HAVE_SYS_TIME_H */36#endif /* HAVE_SYS_TIME_H */
37#if HAVE_WINSOCK2_H37#if HAVE_SYS_SELECT_H
38#include <winsock2.h>
39#elif HAVE_SYS_SELECT_H
40#include <sys/select.h>38#include <sys/select.h>
41#endif /* HAVE_WINSOCK2_H */39#endif /* HAVE_SYS_SELECT_H */
42#endif /* !HAVE_POLL_H */40#endif /* !HAVE_POLL_H */
43 41
44#include "network.h"42#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