diff options
author | taiyu <taiyu.len@gmail.com> | 2015-09-18 07:23:04 -0700 |
---|---|---|
committer | taiyu <taiyu.len@gmail.com> | 2015-09-18 07:23:04 -0700 |
commit | 0d51f62224a3c2e65894f1725076a588b172447c (patch) | |
tree | 35529e2a7888e4d3af0997371efd1da5bbf2ad15 /include/stringop.h | |
parent | minor fix (diff) | |
parent | Fix warnings introduced by prior commit (diff) | |
download | sway-0d51f62224a3c2e65894f1725076a588b172447c.tar.gz sway-0d51f62224a3c2e65894f1725076a588b172447c.tar.zst sway-0d51f62224a3c2e65894f1725076a588b172447c.zip |
merge + no c_extensions
Diffstat (limited to 'include/stringop.h')
-rw-r--r-- | include/stringop.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/stringop.h b/include/stringop.h index dc81cdae..49bfa771 100644 --- a/include/stringop.h +++ b/include/stringop.h | |||
@@ -2,8 +2,13 @@ | |||
2 | #define _SWAY_STRINGOP_H | 2 | #define _SWAY_STRINGOP_H |
3 | #include "list.h" | 3 | #include "list.h" |
4 | 4 | ||
5 | #if !HAVE_DECL_SETENV | ||
6 | // Not sure why we need to provide this | ||
7 | extern int setenv(const char *, const char *, int); | ||
8 | #endif | ||
9 | |||
5 | // array of whitespace characters to use for delims | 10 | // array of whitespace characters to use for delims |
6 | extern const char *whitespace; | 11 | extern const char whitespace[]; |
7 | 12 | ||
8 | char *strip_whitespace(char *str); | 13 | char *strip_whitespace(char *str); |
9 | char *strip_comments(char *str); | 14 | char *strip_comments(char *str); |