/* ISO C Runtime Library Copyright (c) 2019 Green Hills Software, Inc. This program is the property of Green Hills Software, Inc, its contents are proprietary information and no part of it is to be disclosed to anyone except employees of Green Hills Software, Inc., or as agreed in writing signed by the President of Green Hills Software, Inc. */ /* Internal header used to provide certain common definitions from C11 Annex K. * Should not be #included directly. */ #ifdef __ghs__ #pragma ghs startnomisra #endif #if !defined(_STDDEF_H) && !defined(_STDIO_H) && !defined(_STDLIB_H) && \ !defined(_STRING_H) && !defined(_TIME_H) && !defined(_GHS_WCHAR_H) && \ !defined(_ERRNO_H) && !defined(__GHS_STDINT_H) # error "Don't include ghs_annex_k.h directly." #endif #if defined(__STDC_LIB_EXT1__) && (__STDC_LIB_EXT1__ >= 201112L) #if !defined(__STDC_WANT_LIB_EXT1__) # define __GHS_WANT_LIB_EXT1_WAS_UNDEF #elif __STDC_WANT_LIB_EXT1__ == 0 # define __GHS_WANT_LIB_EXT1_WAS_0 #elif __STDC_WANT_LIB_EXT1__ == 1 # define __GHS_WANT_LIB_EXT1_WAS_1 # define __GHS_WANT_ANNEX_K_DEFS #else /* Defined to a value other than 0 or 1. Future revisions of the C standard * may define meanings for these values. */ # error "__STDC_WANT_LIB_EXT1__ may not be defined to any value but 0 or 1." #endif #if (defined(__GHS_WANT_LIB_EXT1_WAS_UNDEF) + \ defined(__GHS_WANT_LIB_EXT1_WAS_0) + \ defined(__GHS_WANT_LIB_EXT1_WAS_1)) > 1 /* Within a preprocessing translation unit, __STDC_WANT_LIB_EXT1__ shall be * defined identically for all inclusions of any headers from Subclause K.3. */ # error "__STDC_WANT_LIB_EXT1__ defined differently for different headers." #endif #endif /* __STDC_LIB_EXT1__ >= 201112L */ /* As with ghs_null.h, this header as a whole is not #include-guarded. Rather, * the contents are guarded individually. This means that a given header can * request whichever definition(s) it wants from this header (via * __GHS_WANT_*), #include the header, and thus get all of those definitions * that haven't already been provided. */ #if defined(__GHS_WANT_RSIZE_T) # if defined(__GHS_WANT_ANNEX_K_DEFS) && !defined(__GHS_HAVE_RSIZE_T) typedef size_t rsize_t; # define __GHS_HAVE_RSIZE_T # endif # undef __GHS_WANT_RSIZE_T #endif #if defined(__GHS_WANT_ERRNO_T) # if defined(__GHS_WANT_ANNEX_K_DEFS) && !defined(__GHS_HAVE_ERRNO_T) typedef int errno_t; # define __GHS_HAVE_ERRNO_T # endif # undef __GHS_WANT_ERRNO_T #endif #ifdef __ghs__ #pragma ghs endnomisra #endif