projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f44937
)
limit visibility of ffs function declaration to _XOPEN_SOURCE
author
Rich Felker
<dalias@aerifal.cx>
Thu, 31 Jul 2014 06:33:17 +0000
(
02:33
-0400)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 31 Jul 2014 06:33:17 +0000
(
02:33
-0400)
per the standard, ffs is XSI shaded, whereas the other functions in
this header are in the base.
include/strings.h
patch
|
blob
|
history
diff --git
a/include/strings.h
b/include/strings.h
index 2b7e086cc8ac46393dabdd8b594019139f906dfa..4d7d69c31ab06564e2fcfa19a7d3cc2f204ede0f 100644
(file)
--- a/
include/strings.h
+++ b/
include/strings.h
@@
-20,7
+20,9
@@
char *index (const char *, int);
char *rindex (const char *, int);
#endif
+#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
int ffs (int);
+#endif
int strcasecmp (const char *, const char *);
int strncasecmp (const char *, const char *, size_t);