#include <alloca.h>
#include <stdlib.h>
-/* Make the basic types 64-bit quantities on the host */
-#define HOST_64_BIT long
+/* Make the basic types 64-bit quantities on the host.
+ Also provide the support macros BFD needs. */
+#define HOST_64_BIT long
+#define sprintf_vma(s,x) sprintf (s, "%016lx", x) /* HOST_64_BIT */
+#define fprintf_vma(f,x) fprintf (f, "%016lx", x) /* HOST_64_BIT */
typedef unsigned long uint64e_type;
typedef unsigned long uint64_type;
/* These must have type unsigned long because they are used as
arguments in printf functions. */
-#define uint64_typeLOW(x) ((unsigned long) (((x) & 0xffffffff)))
-#define uint64_typeHIGH(x) ((unsigned long) (((x) >> 32) & 0xffffffff))
+#define uint64_typeLOW(x) ((unsigned long) (((x) & 0xffffffff))) /* HOST_64_BIT */
+#define uint64_typeHIGH(x) ((unsigned long) (((x) >> 32) & 0xffffffff)) /* HOST_64_BIT */
#include "fopen-same.h"