Commit 33692d21 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix compilation of set_text_domain() macro

parent e4a026f1
......@@ -52,6 +52,7 @@ enum vlc_module_properties
VLC_MODULE_SHORTNAME,
VLC_MODULE_DESCRIPTION,
VLC_MODULE_HELP,
VLC_MODULE_TEXTDOMAIN,
/* Insert new VLC_MODULE_* here */
/* DO NOT EVER REMOVE, INSERT OR REPLACE ANY ITEM! It would break the ABI!
......@@ -234,7 +235,9 @@ enum vlc_module_properties
if (vlc_module_set (p_submodule, VLC_MODULE_NO_UNLOAD)) \
goto error;
#define set_text_domain( dom ) domain = (dom);
#define set_text_domain( dom ) \
if (vlc_module_set (p_module, VLC_MODULE_TEXTDOMAIN, (dom))) \
goto error;
/*****************************************************************************
* Macros used to build the configuration structure.
......
......@@ -237,6 +237,11 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
module->psz_help = va_arg (ap, char *);
break;
case VLC_MODULE_TEXTDOMAIN:
(void) va_arg (ap, const char *);
/* FIXME: not implemented */
break;
case VLC_CONFIG_NAME:
{
const char *name = va_arg (ap, const char *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment