[vlc-devel] [PATCH 03/12] Add #ifdef clauses around MinGW specific code.
Felix Abecassis
felix.abecassis at gmail.com
Fri Nov 29 17:41:28 CET 2013
---
include/vlc_common.h | 2 +-
src/win32/dirs.c | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/vlc_common.h b/include/vlc_common.h
index 6116f8e..f0df305 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -803,7 +803,7 @@ VLC_API bool vlc_ureduce( unsigned *, unsigned *, uint64_t, uint64_t, uint64_t )
#include <AvailabilityMacros.h>
#endif
-#ifdef _WIN32
+#ifdef __MINGW32__
# define vlc_memalign(align, size) (__mingw_aligned_malloc(size, align))
# define vlc_free(base) (__mingw_aligned_free(base))
#elif defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_6)
diff --git a/src/win32/dirs.c b/src/win32/dirs.c
index 4d550fd..7b734c6 100644
--- a/src/win32/dirs.c
+++ b/src/win32/dirs.c
@@ -30,7 +30,9 @@
#endif
#include <vlc_common.h>
-#include <w32api.h>
+#ifdef __MINGW32__
+# include <w32api.h>
+#endif
#include <direct.h>
#include <shlobj.h>
--
1.7.9
More information about the vlc-devel
mailing list