blob: b36b17fce73ee823a197f7b63f7841d54f6e668c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// compat.h
// Compatibility layer for functions not in standard C99
#ifndef MOSLIB_COMPAT_H
#define MOSLIB_COMPAT_H
#define _XOPEN_SOURCE 500
#define _GNU_SOURCE
typedef void declaration;
#ifdef NO_STRDUP
extern char *strdup(const char *s);
#endif // NO_STRDUP
#ifdef NO_MEMMEM
#include <stddef.h>
extern void *memmem(const void *h, size_t h_size, const void *n, size_t n_size);
#endif // NO_MEMMEM
#endif // MOSLIB_COMPAT_H
|