summaryrefslogtreecommitdiffstats
path: root/XAlloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'XAlloc.h')
-rw-r--r--XAlloc.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/XAlloc.h b/XAlloc.h
index 2ebee1a8..97a1c0d0 100644
--- a/XAlloc.h
+++ b/XAlloc.h
@@ -11,11 +11,11 @@
#include <assert.h>
#include <stdlib.h>
-void* xMalloc(size_t size);
+extern void* xMalloc(size_t size);
-void* xCalloc(size_t nmemb, size_t size);
+extern void* xCalloc(size_t nmemb, size_t size);
-void* xRealloc(void* ptr, size_t size);
+extern void* xRealloc(void* ptr, size_t size);
#define xSnprintf(fmt, len, ...) do { int _l=len; int _n=snprintf(fmt, _l, __VA_ARGS__); if (!(_n > -1 && _n < _l)) { curs_set(1); endwin(); err(1, NULL); } } while(0)
@@ -32,9 +32,9 @@ void* xRealloc(void* ptr, size_t size);
#endif
#if (__has_attribute(nonnull) || \
((__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)))
-char* xStrdup_(const char* str) __attribute__((nonnull));
+extern char* xStrdup_(const char* str) __attribute__((nonnull));
#endif // __has_attribute(nonnull) || GNU C 3.3 or later
-char* xStrdup_(const char* str);
+extern char* xStrdup_(const char* str);
#endif