Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 56 lines (45 sloc) 1.424 kb
3b60b0b @poelzi add license headers
authored
1 /*
2 Copyright 2010,2011 ulatencyd developers
3
4 This file is part of ulatencyd.
5
6 ulatencyd is free software: you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the
8 Free Software Foundation, either version 3 of the License,
9 or (at your option) any later version.
10
11 ulatencyd is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 See the GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with ulatencyd. If not, see http://www.gnu.org/licenses/.
18 */
19
5b24127 @poelzi redesign data model
authored
20 #ifndef UTIL_LINUX_NLS_H
21 #define UTIL_LINUX_NLS_H
22
de9b2e1 @poelzi fix some compiling problems on some platforms
authored
23 #ifndef __THROW
24 #define __THROW
25 #endif
26
5b24127 @poelzi redesign data model
authored
27 #ifndef LOCALEDIR
28 #define LOCALEDIR "/usr/share/locale"
29 #endif
30
31 #ifdef HAVE_LOCALE_H
32 # include <locale.h>
33 #else
34 # undef setlocale
35 # define setlocale(Category, Locale) /* empty */
36 #endif
37
38 #ifdef ENABLE_NLS
39 # include <libintl.h>
40 # define _(Text) gettext (Text)
41 # ifdef gettext_noop
42 # define N_(String) gettext_noop (String)
43 # else
44 # define N_(String) (String)
45 # endif
46 #else
47 # undef bindtextdomain
48 # define bindtextdomain(Domain, Directory) /* empty */
49 # undef textdomain
50 # define textdomain(Domain) /* empty */
51 # define _(Text) (Text)
52 # define N_(Text) (Text)
53 #endif
54
55 #endif /* UTIL_LINUX_NLS_H */
Something went wrong with that request. Please try again.