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
Showing the changes to libavformat (1 of 9 files). Show all
Unified · Split
| @@ -34,11 +34,9 @@ · 33 unmodified lines | ||
| 34 | 34 | #if HAVE_SYS_TIME_H |
| 35 | 35 | #include <sys/time.h> |
| 36 | 36 | #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 | |
| 40 | 38 | #include <sys/select.h> |
| 41 | −#endif /* HAVE_WINSOCK2_H */ | |
| 39 | +#endif /* HAVE_SYS_SELECT_H */ | |
| 42 | 40 | #endif /* !HAVE_POLL_H */ |
| 43 | 41 | |
| 44 | 42 | #include "network.h" |