| /* |
| * Copyright (c) 2021-2025 Symas Corporation |
| * |
| * Redistribution and use in source and binary forms, with or without |
| * modification, are permitted provided that the following conditions are |
| * met: |
| * |
| * * Redistributions of source code must retain the above copyright |
| * notice, this list of conditions and the following disclaimer. |
| * * Redistributions in binary form must reproduce the above |
| * copyright notice, this list of conditions and the following disclaimer |
| * in the documentation and/or other materials provided with the |
| * distribution. |
| * * Neither the name of the Symas Corporation nor the names of its |
| * contributors may be used to endorse or promote products derived from |
| * this software without specific prior written permission. |
| * |
| * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| #ifndef COBOL_SYSTEM_H |
| #define COBOL_SYSTEM_H |
| |
| // The following "local" #include is part of the GCC core code |
| #include "config.h" |
| |
| /* Define this so that inttypes.h defines the PRI?64 macros even |
| when compiling with a C++ compiler. Define it here so in the |
| event inttypes.h gets pulled in by another header it is already |
| defined. */ |
| #define __STDC_FORMAT_MACROS |
| |
| // These must be included before the #poison declarations in system.h. |
| |
| #define INCLUDE_STRING |
| #define INCLUDE_VECTOR |
| #define INCLUDE_MAP |
| #define INCLUDE_SET |
| #define INCLUDE_LIST |
| #define INCLUDE_ALGORITHM |
| |
| #include <iterator> |
| #include <stack> |
| #include <deque> |
| #include <numeric> |
| #include <limits> |
| |
| #include <unordered_map> |
| #include <unordered_set> |
| |
| // The following "local" #include is part of the GCC core code |
| #include "system.h" |
| |
| #if (CHECKING_P && GCC_VERSION >= 4001) || GCC_VERSION == BUILDING_GCC_VERSION |
| #define ATTRIBUTE_GCOBOL_DIAG(m, n) __attribute__ ((__format__ (__gcc_tdiag__, m, n))) ATTRIBUTE_NONNULL(m) |
| #else |
| #define ATTRIBUTE_GCOBOL_DIAG(m, n) ATTRIBUTE_NONNULL(m) |
| #endif |
| |
| #endif |