[vlc-devel] [PATCH] WinRT: define a simple WINRT define than WINAPI_FAMILY_APP
Jean-Baptiste Kempf
jb at videolan.org
Tue Jan 8 11:39:46 CET 2013
This will allow us to use #ifdef(WINRT) in the code
---
include/vlc_common.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/vlc_common.h b/include/vlc_common.h
index d09bf78..356f4d6 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -408,6 +408,9 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
* OS-specific headers and thread types
*****************************************************************************/
#if defined( WIN32 )
+# if defined( WINAPI_FAMILY_APP )
+# define WINRT
+# endif
# include <malloc.h>
# ifndef PATH_MAX
# define PATH_MAX MAX_PATH
--
1.8.1
More information about the vlc-devel
mailing list