diff options
Diffstat (limited to 'plugins/common.h')
| -rw-r--r-- | plugins/common.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/common.h b/plugins/common.h index ef888d08..9d1434a3 100644 --- a/plugins/common.h +++ b/plugins/common.h | |||
| @@ -193,7 +193,7 @@ enum { | |||
| 193 | */ | 193 | */ |
| 194 | #include "../gl/gettext.h" | 194 | #include "../gl/gettext.h" |
| 195 | #define _(String) gettext(String) | 195 | #define _(String) gettext(String) |
| 196 | #if !ENABLE_NLS | 196 | #if !defined(ENABLE_NLS) || !ENABLE_NLS |
| 197 | # undef textdomain | 197 | # undef textdomain |
| 198 | # define textdomain(Domainname) /* empty */ | 198 | # define textdomain(Domainname) /* empty */ |
| 199 | # undef bindtextdomain | 199 | # undef bindtextdomain |
| @@ -205,4 +205,11 @@ enum { | |||
| 205 | # define __attribute__(x) /* do nothing */ | 205 | # define __attribute__(x) /* do nothing */ |
| 206 | #endif | 206 | #endif |
| 207 | 207 | ||
| 208 | /* for checking the result of getopt_long */ | ||
| 209 | #if EOF == -1 | ||
| 210 | #define CHECK_EOF(c) ((c) == EOF) | ||
| 211 | #else | ||
| 212 | #define CHECK_EOF(c) ((c) == -1 || (c) == EOF) | ||
| 213 | #endif | ||
| 214 | |||
| 208 | #endif /* _COMMON_H_ */ | 215 | #endif /* _COMMON_H_ */ |
