Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
1e9c9c83
Commit
1e9c9c83
authored
Apr 16, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include <libintl.h> only when really needed
Especially, plugins are not supposed to link with -lintl directly.
parent
6c416be1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
4 deletions
+15
-4
include/vlc_fixups.h
include/vlc_fixups.h
+0
-4
src/extras/libc.c
src/extras/libc.c
+5
-0
src/libvlc.c
src/libvlc.c
+5
-0
src/modules/entry.c
src/modules/entry.c
+5
-0
No files found.
include/vlc_fixups.h
View file @
1e9c9c83
...
@@ -179,10 +179,6 @@ typedef void *locale_t;
...
@@ -179,10 +179,6 @@ typedef void *locale_t;
#define gettext(str) vlc_gettext (str)
#define gettext(str) vlc_gettext (str)
#define pgettext(ctx,id) vlc_pgettext(ctx,id)
#define pgettext(ctx,id) vlc_pgettext(ctx,id)
#if defined (ENABLE_NLS)
# include <libintl.h>
#endif
#define N_(str) gettext_noop (str)
#define N_(str) gettext_noop (str)
#define gettext_noop(str) (str)
#define gettext_noop(str) (str)
...
...
src/extras/libc.c
View file @
1e9c9c83
...
@@ -191,6 +191,11 @@ int vlc_wclosedir( void *_p_dir )
...
@@ -191,6 +191,11 @@ int vlc_wclosedir( void *_p_dir )
#endif
#endif
}
}
#ifdef ENABLE_NLS
# undef gettext
# include <libintl.h>
#endif
/**
/**
* In-tree plugins share their gettext domain with LibVLC.
* In-tree plugins share their gettext domain with LibVLC.
*/
*/
...
...
src/libvlc.c
View file @
1e9c9c83
...
@@ -66,6 +66,11 @@
...
@@ -66,6 +66,11 @@
# include <locale.h>
# include <locale.h>
#endif
#endif
#ifdef ENABLE_NLS
# undef gettext
# include <libintl.h>
/* bindtextdomain */
#endif
#ifdef HAVE_DBUS
#ifdef HAVE_DBUS
/* used for one-instance mode */
/* used for one-instance mode */
# include <dbus/dbus.h>
# include <dbus/dbus.h>
...
...
src/modules/entry.c
View file @
1e9c9c83
...
@@ -28,6 +28,11 @@
...
@@ -28,6 +28,11 @@
#include <assert.h>
#include <assert.h>
#include <stdarg.h>
#include <stdarg.h>
#ifdef ENABLE_NLS
# undef gettext
# include <libintl.h>
#endif
#include "modules/modules.h"
#include "modules/modules.h"
#include "config/configuration.h"
#include "config/configuration.h"
#include "libvlc.h"
#include "libvlc.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment