Make bfd_byte an int8_t, flagword a uint32_t
[binutils-gdb.git] / bfd / trad-core.c
index 14627cb72ec2fd0619209df25004c20ab68d3a27..70a478c084681d09ef8d7b4e39426fe54d65f17e 100644 (file)
@@ -1,5 +1,5 @@
 /* BFD back end for traditional Unix core files (U-area and raw sections)
-   Copyright (C) 1988-2021 Free Software Foundation, Inc.
+   Copyright (C) 1988-2023 Free Software Foundation, Inc.
    Written by John Gilmore of Cygnus Support.
 
    This file is part of BFD, the Binary File Descriptor library.
 #include "libaout.h"          /* BFD a.out internal data structures */
 
 #include <sys/param.h>
-#ifdef HAVE_DIRENT_H
-# include <dirent.h>
-#else
-# ifdef HAVE_SYS_NDIR_H
-#  include <sys/ndir.h>
-# endif
-# ifdef HAVE_SYS_DIR_H
-#  include <sys/dir.h>
-# endif
-# ifdef HAVE_NDIR_H
-#  include <ndir.h>
-# endif
-#endif
+#include <dirent.h>
 #include <signal.h>
 
 #include <sys/user.h>          /* After a.out.h  */
@@ -261,9 +249,9 @@ swap_abort (void)
 #define        NO_GET ((bfd_vma (*) (const void *)) swap_abort)
 #define        NO_PUT ((void (*) (bfd_vma, void *)) swap_abort)
 #define        NO_GETS ((bfd_signed_vma (*) (const void *)) swap_abort)
-#define        NO_GET64 ((bfd_uint64_t (*) (const void *)) swap_abort)
-#define        NO_PUT64 ((void (*) (bfd_uint64_t, void *)) swap_abort)
-#define        NO_GETS64 ((bfd_int64_t (*) (const void *)) swap_abort)
+#define        NO_GET64 ((uint64_t (*) (const void *)) swap_abort)
+#define        NO_PUT64 ((void (*) (uint64_t, void *)) swap_abort)
+#define        NO_GETS64 ((int64_t (*) (const void *)) swap_abort)
 
 const bfd_target core_trad_vec =
   {