Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
a6ab35ee
Commit
a6ab35ee
authored
May 22, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move _ and N_ to the right header
parent
59dec65d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
21 deletions
+17
-21
include/vlc_common.h
include/vlc_common.h
+0
-19
include/vlc_fixups.h
include/vlc_fixups.h
+17
-2
No files found.
include/vlc_common.h
View file @
a6ab35ee
...
...
@@ -892,25 +892,6 @@ VLC_EXPORT( void *, vlc_memset, ( void *, int, size_t ) );
VLC_EXPORT
(
char
*
,
vlc_dgettext
,
(
const
char
*
package
,
const
char
*
msgid
)
);
#endif
#if defined( ENABLE_NLS ) && \
(defined(MODULE_NAME_IS_gnome)||defined(MODULE_NAME_IS_gnome_main)||\
defined(MODULE_NAME_IS_gnome2)||defined(MODULE_NAME_IS_gnome2_main)||\
defined(MODULE_NAME_IS_pda))
/* Declare nothing: gnome.h will do it for us */
#elif defined( ENABLE_NLS )
# include <libintl.h>
# undef _
# ifdef WIN32
# define _(String) vlc_dgettext (PACKAGE_NAME, String)
# else
# define _(String) dgettext(PACKAGE_NAME, String)
# endif
# define N_(String) (String)
#else
# define _(String) (String)
# define N_(String) (String)
#endif
/*****************************************************************************
* libvlc features
*****************************************************************************/
...
...
include/vlc_fixups.h
View file @
a6ab35ee
/*****************************************************************************
* fixups.h: portability fixups included from config.h
*****************************************************************************
* Copyright © 1998-2007 the VideoLAN project
* $Id$
* Copyright © 1998-2008 the VideoLAN project
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -163,4 +162,20 @@ typedef void *locale_t;
# define freelocale( a ) (void)0
#endif
/* libintl support */
#define _(str) dgettext (PACKAGE_NAME, str)
#if defined (ENABLE_NLS)
# include <libintl.h>
# ifdef WIN32
# undef _
# define _(str) vlc_dgettext (PACKAGE_NAME, str)
# endif
#else
# define dgettext(dom, str) (str)
#endif
#define N_(str) gettext_noop (str)
#define gettext_noop(str) (str)
#endif
/* !LIBVLC_FIXUPS_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