]> git.sesse.net Git - vlc/commitdiff
vlc_fixups: Better dummy implementation for type checking, and unused checks.
authorPierre d'Herbemont <pdherbemont@free.fr>
Thu, 20 Aug 2009 20:06:25 +0000 (22:06 +0200)
committerPierre d'Herbemont <pdherbemont@free.fr>
Thu, 20 Aug 2009 20:07:34 +0000 (22:07 +0200)
include/vlc_fixups.h

index a02eeceb974186caf7261f71076dd1c732fd53ff..bc751879ceb4cbf4b62578bf108472c22773a667 100644 (file)
@@ -154,9 +154,20 @@ static inline char *getenv (const char *name)
 
 #ifndef HAVE_USELOCALE
 typedef void *locale_t;
-# define newlocale( a, b, c ) ((locale_t)0)
-# define uselocale( a ) ((locale_t)0)
-# define freelocale( a ) (void)0
+static inline locale_t uselocale(locale_t loc)
+{
+    VLC_UNUSED(loc);
+    return NULL;
+}
+static inline void freelocale(locale_t loc)
+{
+    VLC_UNUSED(loc);
+}
+static inline locale_t newlocale(int mask, const char * locale, locale_t base);
+{
+    VLC_UNUSED(mask); VLC_UNUSED(locale); VLC_UNUSED(base);
+    return NULL;
+}
 #endif
 
 #ifdef WIN32