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 // HAVE_BAR
#undef HAVE_BAR
/* No bar on Windows except with MinGW. */
#if !defined(_WIN32) || \ #if !defined(_WIN32) || \
defined(__MINGW32__) defined(__MINGW32__)
# define HAVE_BAR 1 # define HAVE_BAR 1
#else
# undef HAVE_BAR /* No bar on Windows except with MinGW. */
#endif #endif
``` ```

View File

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

View File

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

View File

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

View File

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