]> git.ipfire.org Git - people/ms/dma.git/blob - dfcompat.h
flip the polarity of the compatibility macros to HAVE_*
[people/ms/dma.git] / dfcompat.h
1 #ifndef DFCOMPAT_H
2 #define DFCOMPAT_H
3
4 #include <sys/types.h>
5
6 #ifndef __DECONST
7 #define __DECONST(type, var) ((type)(uintptr_t)(const void *)(var))
8 #endif
9
10 #ifndef HAVE_STRLCPY
11 size_t strlcpy(char *, const char *, size_t);
12 #endif
13
14 #ifndef HAVE_REALLOCF
15 void *reallocf(void *, size_t);
16 #endif
17
18 #ifndef HAVE_GETPROGNAME
19 const char *getprogname(void);
20 #endif
21
22 #endif /* DFCOMPAT_H */