[hackers] [sbase] Ensure we #undef strlcat and strlcpy || sin

From: <git_AT_suckless.org>
Date: Thu, 30 Jan 2014 22:04:24 +0100

commit 4ba6c378397b541cda0b46b5393ca5a6df7ab627
Author: sin <sin_AT_2f30.org>
Date: Thu Jan 30 21:02:45 2014 +0000

    Ensure we #undef strlcat and strlcpy
    
    These may be implemented as macros so #undef them and use our own
    implementation.

diff --git a/util.h b/util.h
index 4856bb3..a0e685a 100644
--- a/util.h
+++ b/util.h
_AT_@ -20,6 +20,8 @@ long estrtol(const char *, int);
 void fnck(const char *, const char *, int (*)(const char *, const char *));
 void putword(const char *);
 void recurse(const char *, void (*)(const char *));
+#undef strlcat
 size_t strlcat(char *, const char *, size_t);
+#undef strlcpy
 size_t strlcpy(char *, const char *, size_t);
 void weprintf(const char *, ...);
Received on Thu Jan 30 2014 - 22:04:24 CET

This archive was generated by hypermail 2.3.0 : Thu Jan 30 2014 - 22:12:15 CET