projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CI: add checks for basic compatibility with muon
[tinc]
/
src
/
have.h
diff --git
a/src/have.h
b/src/have.h
index
6c9d675
..
a155b04
100644
(file)
--- a/
src/have.h
+++ b/
src/have.h
@@
-29,6
+29,8
@@
#define _CRT_NONSTDC_NO_WARNINGS
#endif
#define _CRT_NONSTDC_NO_WARNINGS
#endif
+#define __STDC_WANT_LIB_EXT1__ 1
+
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
@@
-61,6
+63,12
@@
#endif
#endif
#endif
#endif
+#if defined(HAVE_ATTR_MALLOC_WITH_ARG)
+#define ATTR_DEALLOCATOR(dealloc) __attribute__((__malloc__(dealloc)))
+#else
+#define ATTR_DEALLOCATOR(dealloc)
+#endif
+
#ifdef HAVE_ATTR_MALLOC
#define ATTR_MALLOC __attribute__((__malloc__))
#else
#ifdef HAVE_ATTR_MALLOC
#define ATTR_MALLOC __attribute__((__malloc__))
#else