[vlc-devel] commit: Fix warnings ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Jun 7 23:13:23 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Jun  8 00:15:09 2008 +0300| [539ecfa542c90027a5312ab9bfc91b40b2090bbe]

Fix warnings

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

 include/vlc_plugin.h |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/vlc_plugin.h b/include/vlc_plugin.h
index 9fc64c1..48caece 100644
--- a/include/vlc_plugin.h
+++ b/include/vlc_plugin.h
@@ -83,13 +83,11 @@
  * instance the module name, its shortcuts, its capabilities... we also create
  * a copy of its config because the module can be unloaded at any time.
  */
-#if defined (__PLUGIN__) || defined (__BUILTIN__)
-EXTERN_SYMBOL DLL_SYMBOL int CDECL_SYMBOL
-E_(vlc_entry) ( module_t *p_module );
-#endif
-
 #define vlc_module_begin( )                                                   \
     EXTERN_SYMBOL DLL_SYMBOL int CDECL_SYMBOL                                 \
+    E_(vlc_entry) ( module_t *p_module );                                     \
+                                                                              \
+    EXTERN_SYMBOL DLL_SYMBOL int CDECL_SYMBOL                                 \
     __VLC_SYMBOL(vlc_entry) ( module_t *p_module )                            \
     {                                                                         \
         module_config_t *p_config = NULL;                                     \
@@ -452,6 +450,8 @@ enum vlc_config_properties
 /* Meta data plugin exports */
 #define VLC_META_EXPORT( name, value ) \
     EXTERN_SYMBOL DLL_SYMBOL const char * CDECL_SYMBOL \
+    E_(vlc_entry_ ## name) (void); \
+    EXTERN_SYMBOL DLL_SYMBOL const char * CDECL_SYMBOL \
     __VLC_SYMBOL(vlc_entry_ ## name) (void) \
     { \
          return value; \




More information about the vlc-devel mailing list