aboutsummaryrefslogtreecommitdiff
path: root/zlib/inftrees.c
diff options
context:
space:
mode:
authorJerome Guitton <guitton@adacore.com>2024-05-10 13:16:17 +0000
committerMarc Poulhiès <poulhies@adacore.com>2024-06-14 09:34:20 +0200
commit7232be268a0a275d43225fef141cf99d2f6bbed9 (patch)
tree13acfd27f4953304fda9e04e4eca30c370fe23ed /zlib/inftrees.c
parent50c41dd34202b29983a862b5d326bab668402c17 (diff)
downloadgcc-7232be268a0a275d43225fef141cf99d2f6bbed9.zip
gcc-7232be268a0a275d43225fef141cf99d2f6bbed9.tar.gz
gcc-7232be268a0a275d43225fef141cf99d2f6bbed9.tar.bz2
ada: Simplify handling of VxWorks-specific error codes for ENOENT
These error codes were defined on older versions of VxWorks (5, 6, 7 SR0540) and now they are either not defined or they fallback to ENOENT. To handle these cases without using complex tests against vxworks versions, leverage on __has_include and provide a fallback to ENOENT if these error codes are not defined. gcc/ada/ * sysdep.c (S_dosFsLib_FILE_NOT_FOUND, S_nfsLib_NFSERR_NOENT): New macros, falback to ENOENT when not already defined. (__gnat_is_file_not_found_error): Use these new macros to remove tests against VxWorks flavors.
Diffstat (limited to 'zlib/inftrees.c')
0 files changed, 0 insertions, 0 deletions