projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
adapt setlocale to support possibility of failure
[musl]
/
src
/
internal
/
locale_impl.h
diff --git
a/src/internal/locale_impl.h
b/src/internal/locale_impl.h
index
0b5e00c
..
741a71c
100644
(file)
--- a/
src/internal/locale_impl.h
+++ b/
src/internal/locale_impl.h
@@
-27,6
+27,8
@@
hidden const char *__lctrans_impl(const char *, const struct __locale_map *);
hidden int __loc_is_allocated(locale_t);
hidden char *__gettextdomain(void);
+#define LOC_MAP_FAILED ((const struct __locale_map *)-1)
+
#define LCTRANS(msg, lc, loc) __lctrans(msg, (loc)->cat[(lc)])
#define LCTRANS_CUR(msg) __lctrans_cur(msg)