diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libintl.h | 9 | ||||
-rw-r--r-- | include/rpc/auth.h | 3 | ||||
-rw-r--r-- | include/rpc/rpc.h | 5 | ||||
-rw-r--r-- | include/rpc/types.h | 5 | ||||
-rw-r--r-- | include/rpc/xdr.h | 3 |
5 files changed, 9 insertions, 16 deletions
diff --git a/include/libintl.h b/include/libintl.h index be3969fff..6631d0b26 100644 --- a/include/libintl.h +++ b/include/libintl.h @@ -23,6 +23,8 @@ #include <features.h> +#ifdef __UCLIBC_HAS_GETTEXT_AWARENESS__ + /* We define an additional symbol to signal that we use the GNU implementation of gettext. */ #define __USE_GNU_GETTEXT 1 @@ -125,4 +127,11 @@ extern char *bind_textdomain_codeset (__const char *__domainname, __END_DECLS +#endif /* __UCLIBC_HAS_GETTEXT_AWARENESS__ */ + +#ifdef _LIBC +# define _(x) x +# define N_(x) x +#endif + #endif /* libintl.h */ diff --git a/include/rpc/auth.h b/include/rpc/auth.h index 9a7a7d389..1d5198ca4 100644 --- a/include/rpc/auth.h +++ b/include/rpc/auth.h @@ -41,9 +41,6 @@ #ifndef _RPC_AUTH_H #define _RPC_AUTH_H 1 -#ifdef _LIBC -#define _(X) X -#endif #include <features.h> #include <rpc/xdr.h> diff --git a/include/rpc/rpc.h b/include/rpc/rpc.h index cd5d8a8d7..df0542890 100644 --- a/include/rpc/rpc.h +++ b/include/rpc/rpc.h @@ -38,11 +38,6 @@ #ifndef _RPC_RPC_H #define _RPC_RPC_H 1 -#ifdef _LIBC -#define _(X) X -#include <features.h> -#endif - #include <rpc/types.h> /* some typedefs */ #include <netinet/in.h> diff --git a/include/rpc/types.h b/include/rpc/types.h index e166ddfd4..8eff8e718 100644 --- a/include/rpc/types.h +++ b/include/rpc/types.h @@ -33,11 +33,6 @@ #ifndef _RPC_TYPES_H #define _RPC_TYPES_H 1 -#ifdef _LIBC -#define _(X) X -#endif -#include <features.h> - typedef int bool_t; typedef int enum_t; /* This needs to be changed to uint32_t in the future */ diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h index 24cc8f821..2fbe3e7b9 100644 --- a/include/rpc/xdr.h +++ b/include/rpc/xdr.h @@ -36,9 +36,6 @@ #ifndef _RPC_XDR_H #define _RPC_XDR_H 1 -#ifdef _LIBC -# define _(X) X -#endif #include <features.h> #include <sys/types.h> #include <rpc/types.h> |