]> git.lyx.org Git - lyx.git/blobdiff - intl/libgettext.h
Headers cleanup from Angus
[lyx.git] / intl / libgettext.h
index d657c0f63d0e2b6e29b738d8b2dd99002c7888de..3a92960ae3ee9ff2a1376816de31c179061d390e 100644 (file)
@@ -1,5 +1,5 @@
 /* Message catalogs for internationalization.
-   Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
 
    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
@@ -20,8 +20,8 @@
    include protection above.  But the systems header might perhaps also
    define _LIBINTL_H and therefore we have to protect the definition here.  */
 
-#if !defined (_LIBINTL_H) || !defined (_LIBGETTEXT_H)
-#if !defined (_LIBINTL_H)
+#if !defined _LIBINTL_H || !defined _LIBGETTEXT_H
+#ifndef _LIBINTL_H
 # define _LIBINTL_H    1
 #endif
 #define _LIBGETTEXT_H  1
@@ -43,9 +43,8 @@ extern "C" {
 
 /* @@ end of prolog @@ */
 
-
 #ifndef PARAMS
-# if defined(__STDC__) || defined(__cplusplus)
+# if __STDC__ || defined __cplusplus
 #  define PARAMS(args) args
 # else
 #  define PARAMS(args) ()
@@ -145,7 +144,7 @@ extern int _nl_msg_cat_cntr;
   (__extension__                                                             \
    ({                                                                        \
      char *__result;                                                         \
-     if (__builtin_constant_p ((int)Msgid))                                          \
+     if (__builtin_constant_p (Msgid))                                       \
        {                                                                     \
         static char *__translation__;                                        \
         static int __catalog_counter__;                                      \
@@ -169,8 +168,8 @@ extern int _nl_msg_cat_cntr;
 # define gettext(Msgid) (Msgid)
 # define dgettext(Domainname, Msgid) (Msgid)
 # define dcgettext(Domainname, Msgid, Category) (Msgid)
-# define textdomain(Domainname) while (0) /* nothing */
-# define bindtextdomain(Domainname, Dirname) while (0) /* nothing */
+# define textdomain(Domainname) ((char *) Domainname)
+# define bindtextdomain(Domainname, Dirname) ((char *) Dirname)
 
 #endif