File: dfcompat.h

package info (click to toggle)
dma 0.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 440 kB
  • sloc: ansic: 3,087; makefile: 127; sh: 90; yacc: 89; lex: 24
file content (24 lines) | stat: -rw-r--r-- 406 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef DFCOMPAT_H
#define DFCOMPAT_H

#define _GNU_SOURCE

#include <sys/types.h>

#ifndef __DECONST
#define __DECONST(type, var)    ((type)(uintptr_t)(const void *)(var))
#endif

#ifndef HAVE_STRLCPY
size_t strlcpy(char *, const char *, size_t);
#endif

#ifndef HAVE_REALLOCF
void *reallocf(void *, size_t);
#endif

#ifndef HAVE_GETPROGNAME
const char *getprogname(void);
#endif

#endif /* DFCOMPAT_H */