diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-08-22 16:26:51 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-08-22 16:26:51 +0200 |
commit | 6bae9a94b97f808e888de1b4633ccb52e7c26c58 (patch) | |
tree | 9f11153a199643bad1c53509af93888a5944b044 | |
parent | 6d02ae93a30afe8492b176907c5cf11d0e639420 (diff) |
sfeed_opml_import: does not need util but may need compat.h for strlcpy, strlcat
-rw-r--r-- | compat.h | 2 | ||||
-rw-r--r-- | sfeed_opml_import.c | 1 | ||||
-rw-r--r-- | util.h | 2 |
3 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,6 @@ +#ifdef COMPAT #undef strlcat size_t strlcat(char *, const char *, size_t); #undef strlcpy size_t strlcpy(char *, const char *, size_t); +#endif diff --git a/sfeed_opml_import.c b/sfeed_opml_import.c index 6e253a9..a2e2082 100644 --- a/sfeed_opml_import.c +++ b/sfeed_opml_import.c @@ -6,6 +6,7 @@ #include <strings.h> #include <time.h> +#include "compat.h" #include "xml.h" static XMLParser parser; /* XML parser state */ @@ -1,6 +1,4 @@ -#ifdef COMPAT #include "compat.h" -#endif #define ISUTF8(c) (((c) & 0xc0) != 0x80) #define LEN(x) (sizeof (x) / sizeof *(x)) |