]> git.sesse.net Git - vlc/blobdiff - include/vlc_fixups.h
Simplification
[vlc] / include / vlc_fixups.h
index a02eeceb974186caf7261f71076dd1c732fd53ff..74cf4544a5ab5d104e99eae9791fdce025344c91 100644 (file)
@@ -153,10 +153,22 @@ static inline char *getenv (const char *name)
 #endif
 
 #ifndef HAVE_USELOCALE
+#define LC_NUMERIC_MASK 0
 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)
+{
+    (void)loc;
+    return NULL;
+}
+static inline void freelocale(locale_t loc)
+{
+    (void)loc;
+}
+static inline locale_t newlocale(int mask, const char * locale, locale_t base)
+{
+    (void)mask; (void)locale; (void)base;
+    return NULL;
+}
 #endif
 
 #ifdef WIN32