Redo tests to first #undef

This commit is contained in:
Boris Kolpackov 2022-01-14 10:43:52 +02:00
parent 908358e13e
commit e023354f8f
5 changed files with 16 additions and 6 deletions

View File

@ -137,11 +137,13 @@ continuations. For example:
```
// HAVE_BAR
#undef HAVE_BAR
/* No bar on Windows except with MinGW. */
#if !defined(_WIN32) || \
defined(__MINGW32__)
# define HAVE_BAR 1
#else
# undef HAVE_BAR /* No bar on Windows except with MinGW. */
#endif
```

View File

@ -1,2 +1,5 @@
// HAVE_STDLIB_H
#undef HAVE_STDLIB_H
#define HAVE_STDLIB_H 1

View File

@ -1,9 +1,10 @@
// HAVE_STRLCAT
#undef HAVE_STRLCAT
#if defined(__FreeBSD__) || \
defined(__OpenBSD__) || \
defined(__NetBSD__) || \
defined(__APPLE__)
# define HAVE_STRLCAT 1
#else
# undef HAVE_STRLCAT
#endif

View File

@ -1,9 +1,10 @@
// HAVE_STRLCPY
#undef HAVE_STRLCPY
#if defined(__FreeBSD__) || \
defined(__OpenBSD__) || \
defined(__NetBSD__) || \
defined(__APPLE__)
# define HAVE_STRLCPY 1
#else
# undef HAVE_STRLCPY
#endif

View File

@ -1,2 +1,5 @@
// STDC_HEADERS
#undef STDC_HEADERS
#define STDC_HEADERS 1