/*1* *****************************************************************************2*3* SPDX-License-Identifier: BSD-2-Clause4*5* Copyright (c) 2018-2025 Gavin D. Howard and contributors.6*7* Redistribution and use in source and binary forms, with or without8* modification, are permitted provided that the following conditions are met:9*10* * Redistributions of source code must retain the above copyright notice, this11* list of conditions and the following disclaimer.12*13* * Redistributions in binary form must reproduce the above copyright notice,14* this list of conditions and the following disclaimer in the documentation15* and/or other materials provided with the distribution.16*17* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"18* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE19* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE20* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE21* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR22* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF23* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS24* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN25* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)26* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE27* POSSIBILITY OF SUCH DAMAGE.28*29* *****************************************************************************30*31* File for testing compilation on different platforms.32*33*/3435// This is used by configure.sh to test for OpenBSD.36#ifdef BC_TEST_OPENBSD37#ifdef __OpenBSD__38#error On OpenBSD without _BSD_SOURCE39#endif // __OpenBSD__40#endif // BC_TEST_OPENBSD4142// This is used by configure.sh to test for FreeBSD.43#ifdef BC_TEST_FREEBSD44#ifdef __FreeBSD__45#error On FreeBSD with _POSIX_C_SOURCE46#endif // __FreeBSD__47#endif // BC_TEST_FREEBSD4849// This is used by configure.sh to test for macOS.50#ifdef BC_TEST_APPLE51#ifdef __APPLE__52#error On macOS without _DARWIN_C_SOURCE53#endif // __APPLE__54#endif // BC_TEST_APPLE5556extern int test;5758int test;596061