[vlc-commits] rtp: fix include order

Rémi Denis-Courmont git at videolan.org
Sat Jun 6 15:46:52 CEST 2020


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jun  6 16:46:31 2020 +0300| [9e829b576481ef724eb0801ea6d0f11f4e83d6d9] | committer: Rémi Denis-Courmont

rtp: fix include order

System headers must be included before VLC ones, especially on Windows.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9e829b576481ef724eb0801ea6d0f11f4e83d6d9
---

 modules/access/rtp/input.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/modules/access/rtp/input.c b/modules/access/rtp/input.c
index d1d0f72bf5..b05a6c9dae 100644
--- a/modules/access/rtp/input.c
+++ b/modules/access/rtp/input.c
@@ -24,10 +24,6 @@
 # include <config.h>
 #endif
 
-#include <vlc_common.h>
-#include <vlc_demux.h>
-#include <vlc_block.h>
-
 #include <limits.h>
 #include <errno.h>
 #ifdef HAVE_POLL
@@ -36,7 +32,13 @@
 #ifdef HAVE_SYS_UIO_H
 # include <sys/uio.h>
 #endif
+#ifdef _WIN32
+# include <winsock2.h>
+#endif
 
+#include <vlc_common.h>
+#include <vlc_demux.h>
+#include <vlc_block.h>
 #include <vlc_dtls.h>
 
 #include "rtp.h"



More information about the vlc-commits mailing list