"Fossies" - the Fresh Open Source Software Archive

Member "cryptsetup-2.4.3/lib/nls.h" (14 Jan 2016, 739 Bytes) of package /linux/misc/cryptsetup-2.4.3.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "nls.h" see the Fossies "Dox" file reference documentation.

    1 #ifndef CRYPTSETUP_NLS_H
    2 #define CRYPTSETUP_NLS_H
    3 
    4 #ifndef LOCALEDIR
    5 #define LOCALEDIR "/usr/share/locale"
    6 #endif
    7 
    8 #ifdef HAVE_LOCALE_H
    9 # include <locale.h>
   10 #else
   11 # undef setlocale
   12 # define setlocale(Category, Locale) /* empty */
   13 #endif
   14 
   15 #ifdef ENABLE_NLS
   16 # include <libintl.h>
   17 # define _(Text) gettext (Text)
   18 # ifdef gettext_noop
   19 #  define N_(String) gettext_noop (String)
   20 # else
   21 #  define N_(String) (String)
   22 # endif
   23 #else
   24 # undef bindtextdomain
   25 # define bindtextdomain(Domain, Directory) /* empty */
   26 # undef textdomain
   27 # define textdomain(Domain) /* empty */
   28 # define _(Text) (Text)
   29 # define N_(Text) (Text)
   30 # define ngettext(Singular, Plural, Count) \
   31     ( (Count) == 1 ? (Singular) : (Plural) )
   32 #endif
   33 
   34 #endif /* CRYPTSETUP_NLS_H */