[vlc-devel] commit: vlc_fixups: Better dummy implementation for type checking, and unused checks. (Pierre d'Herbemont )

git version control git at videolan.org
Thu Aug 20 22:07:38 CEST 2009


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Thu Aug 20 22:06:25 2009 +0200| [711f2a1f622eb5e9585d5f548e71c40def96d498] | committer: Pierre d'Herbemont 

vlc_fixups: Better dummy implementation for type checking, and unused checks.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=711f2a1f622eb5e9585d5f548e71c40def96d498
---

 include/vlc_fixups.h |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index a02eece..bc75187 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -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




More information about the vlc-devel mailing list