summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-01-02 14:35:53 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-01-02 14:35:53 +0100
commit8b4664f694eee80e78903605e21fee770ba7cedf (patch)
treefb1cf1c6b60b3681a5c87517fa03bc25ff4792bb /util.h
parentdd0baa3e7b32fb66f2f8c1fa8cb41cae3f4feca4 (diff)
compat: separate compat stuff, strlcpy atm
Diffstat (limited to 'util.h')
-rw-r--r--util.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/util.h b/util.h
index 429d0a5..67b2f2a 100644
--- a/util.h
+++ b/util.h
@@ -1,3 +1,7 @@
+#ifdef COMPAT
+#include "compat.h"
+#endif
+
#include <time.h>
#define ISUTF8(c) (((c) & 0xc0) != 0x80)
@@ -16,9 +20,6 @@ enum { FieldUnixTimestamp = 0, FieldTimeFormatted, FieldTitle, FieldLink,
FieldContent, FieldContentType, FieldId, FieldAuthor, FieldFeedType,
FieldFeedName, FieldFeedUrl, FieldBaseSiteUrl, FieldLast };
-#undef strlcpy
-size_t strlcpy(char *, const char *, size_t);
-
void feedsfree(struct feed *f);
unsigned int parseline(char **line, size_t *size, char **fields,
unsigned int maxfields, int separator, FILE *fp);