| 1 |
#ifndef LCDF_TYPETOOLS_CONFIG_H |
| 2 |
#define LCDF_TYPETOOLS_CONFIG_H 1 |
| 3 |
|
| 4 |
#include <autoconf.h> |
| 5 |
|
| 6 |
/* Allow compilation on Windows (thanks, Fabrice Popineau). */ |
| 7 |
#ifdef WIN32 |
| 8 |
# ifdef __MINGW32__ |
| 9 |
# include <winsock2.h> |
| 10 |
# include <windows.h> |
| 11 |
# else |
| 12 |
# include <win32lib.h> |
| 13 |
# endif |
| 14 |
#else |
| 15 |
# include <stddef.h> |
| 16 |
# define CDECL /* nothing */ |
| 17 |
#endif |
| 18 |
|
| 19 |
#ifdef __cplusplus |
| 20 |
extern "C" { |
| 21 |
#endif |
| 22 |
|
| 23 |
/* Prototype strerror if necessary. */ |
| 24 |
#if !HAVE_STRERROR |
| 25 |
char *strerror(int errno); |
| 26 |
#endif |
| 27 |
|
| 28 |
/* Prototype strnlen if necessary. */ |
| 29 |
#if !HAVE_DECL_STRNLEN |
| 30 |
size_t strnlen(const char *s, size_t maxlen); |
| 31 |
#endif |
| 32 |
|
| 33 |
/* Prototype good_strtod if necessary. */ |
| 34 |
#if HAVE_BROKEN_STRTOD |
| 35 |
double good_strtod(const char *s, char **endptr); |
| 36 |
#endif |
| 37 |
|
| 38 |
#ifdef __cplusplus |
| 39 |
} |
| 40 |
/* Get rid of a possible inline macro under C++. */ |
| 41 |
# define inline inline |
| 42 |
|
| 43 |
/* Ignore `noexcept` if compiler is too old. */ |
| 44 |
#if __cplusplus < 201103L |
| 45 |
#define noexcept |
| 46 |
#endif |
| 47 |
#endif |
| 48 |
|
| 49 |
#endif /* LCDF_TYPETOOLS_CONFIG_H */ |