| 34 #include "debug.h" |
35 #include "debug.h" |
| 35 #include "libc_internal.h" |
36 #include "libc_internal.h" |
| 36 #include "util.h" |
37 #include "util.h" |
| 37 #include <glib/gstdio.h> |
38 #include <glib/gstdio.h> |
| 38 #include "util.h" |
39 #include "util.h" |
| 39 |
|
| 40 /** This is redefined here because we can't include internal.h */ |
|
| 41 #ifdef ENABLE_NLS |
|
| 42 # include <locale.h> |
|
| 43 # include <libintl.h> |
|
| 44 # define _(String) ((const char *)dgettext(PACKAGE, String)) |
|
| 45 # ifdef gettext_noop |
|
| 46 # define N_(String) gettext_noop (String) |
|
| 47 # else |
|
| 48 # define N_(String) (String) |
|
| 49 # endif |
|
| 50 #else |
|
| 51 # include <locale.h> |
|
| 52 # define N_(String) (String) |
|
| 53 # ifndef _ |
|
| 54 # define _(String) ((const char *)String) |
|
| 55 # endif |
|
| 56 # define ngettext(Singular, Plural, Number) ((Number == 1) ? ((const char *)Singular) : ((const char *)Plural)) |
|
| 57 # define dngettext(Domain, Singular, Plural, Number) ((Number == 1) ? ((const char *)Singular) : ((const char *)Plural)) |
|
| 58 #endif |
|
| 59 |
40 |
| 60 #ifndef S_ISDIR |
41 #ifndef S_ISDIR |
| 61 # define S_ISDIR(m) (((m)&S_IFDIR)==S_IFDIR) |
42 # define S_ISDIR(m) (((m)&S_IFDIR)==S_IFDIR) |
| 62 #endif |
43 #endif |
| 63 |
44 |