[vlc-commits] aligned_alloc: remove redundant preprocessor predicate

Rémi Denis-Courmont git at videolan.org
Mon Jun 19 17:06:38 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jun 19 18:05:04 2017 +0300| [6f00f3305c5bb91d604f606deceb150d5890b024] | committer: Rémi Denis-Courmont

aligned_alloc: remove redundant preprocessor predicate

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

 compat/aligned_alloc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/compat/aligned_alloc.c b/compat/aligned_alloc.c
index 9a61c0010f..9ea352b0c5 100644
--- a/compat/aligned_alloc.c
+++ b/compat/aligned_alloc.c
@@ -25,7 +25,7 @@
 #include <assert.h>
 #include <stdlib.h>
 #include <errno.h>
-#if !defined (HAVE_POSIX_MEMALIGN) && !defined (_WIN32) && !defined (__APPLE__)
+#if !defined (HAVE_POSIX_MEMALIGN) && !defined (_WIN32)
 # include <malloc.h>
 #endif
 
@@ -52,7 +52,7 @@ void *aligned_alloc(size_t align, size_t size)
     }
     return ptr;
 
-#elif !defined (_WIN32) && !defined (__APPLE__)
+#elif !defined (_WIN32)
 
    return memalign(align, size);
 



More information about the vlc-commits mailing list