[vlc-commits] Prefetch: include cosmetics

Jean-Baptiste Kempf git at videolan.org
Thu Nov 26 17:32:18 CET 2015


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Nov 26 17:29:21 2015 +0100| [9bac00d12a2d71e61bc761aa0dc0ca2bcc9bdad0] | committer: Jean-Baptiste Kempf

Prefetch: include cosmetics

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

 modules/stream_filter/prefetch.c |   26 ++++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)

diff --git a/modules/stream_filter/prefetch.c b/modules/stream_filter/prefetch.c
index ecdbc70..4821140 100644
--- a/modules/stream_filter/prefetch.c
+++ b/modules/stream_filter/prefetch.c
@@ -28,22 +28,24 @@
 
 #include <sys/types.h>
 #include <unistd.h>
+
 #ifdef HAVE_MMAP
-#include <sys/mman.h>
-#ifndef MAP_ANONYMOUS
-# define MAP_ANONYMOUS MAP_ANON
-#endif
+# include <sys/mman.h>
+# ifndef MAP_ANONYMOUS
+#  define MAP_ANONYMOUS MAP_ANON
+# endif
 #elif !defined(__OS2__)
-#include <errno.h>
-#define MAP_FAILED ((void *)-1)
-#define mmap(a,l,p,f,d,o) \
-    ((void)(a), (void)(l), (void)(d), (void)(o), errno = ENOMEM, MAP_FAILED)
-#define munmap(a,l) \
-    ((void)(a), (void)(l), errno = EINVAL, -1)
-#define sysconf(a) 1
+# include <errno.h>
+# define MAP_FAILED ((void *)-1)
+# define mmap(a,l,p,f,d,o) \
+     ((void)(a), (void)(l), (void)(d), (void)(o), errno = ENOMEM, MAP_FAILED)
+# define munmap(a,l) \
+     ((void)(a), (void)(l), errno = EINVAL, -1)
+# define sysconf(a) 1
 #endif
+
 #if defined (_WIN32)
-#include <windows.h>
+# include <windows.h>
 #endif
 
 #include <vlc_common.h>



More information about the vlc-commits mailing list