[vlc-devel] [PATCH] vlc_fixups: make aligned_alloc C linkage

Zhao Zhili quinkblack at foxmail.com
Wed Aug 15 10:11:54 CEST 2018


---
 include/vlc_fixups.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index 037f67d..afe085d 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -233,6 +233,10 @@ float strtof (const char *, char **);
 long long int strtoll (const char *, char **, int);
 #endif
 
+#ifndef HAVE_ALIGNED_ALLOC
+void *aligned_alloc(size_t, size_t);
+#endif
+
 /* time.h */
 #ifndef HAVE_GMTIME_R
 struct tm *gmtime_r (const time_t *, struct tm *);
@@ -298,10 +302,6 @@ int setenv (const char *, const char *, int);
 int unsetenv (const char *);
 #endif
 
-#ifndef HAVE_ALIGNED_ALLOC
-void *aligned_alloc(size_t, size_t);
-#endif
-
 #if defined (_WIN32) && defined(__MINGW32__)
 #define aligned_free(ptr)  __mingw_aligned_free(ptr)
 #elif defined (_WIN32) && defined(_MSC_VER)
-- 
2.9.5





More information about the vlc-devel mailing list