1999-08-01 08:25:39 +04:00
|
|
|
# $NetBSD: bfd-h.sed,v 1.2 1999/08/01 04:25:40 sommerfeld Exp $
|
1999-02-09 18:57:53 +03:00
|
|
|
# Preparse bfd.h such that it can be used on multiple machines.
|
|
|
|
|
|
|
|
s/@VERSION@/2.9.1/
|
|
|
|
/@wordsize@/{
|
|
|
|
i\
|
1999-08-01 08:25:39 +04:00
|
|
|
#if defined(__alpha__) || defined (__sparc_v9__) || defined(BFD_TARG_64)\
|
1999-02-09 18:57:53 +03:00
|
|
|
#define BFD_ARCH_SIZE 64\
|
|
|
|
#else\
|
|
|
|
#define BFD_ARCH_SIZE 32\
|
|
|
|
#endif
|
|
|
|
d
|
|
|
|
}
|
|
|
|
/@BFD_HOST_64BIT_LONG@/ {
|
|
|
|
i\
|
|
|
|
#if defined(__alpha__) || defined (__sparc_v9__)\
|
|
|
|
#define BFD_HOST_64BIT_LONG 1\
|
|
|
|
#else\
|
|
|
|
#define BFD_HOST_64BIT_LONG 0\
|
|
|
|
#endif
|
|
|
|
d
|
|
|
|
}
|
|
|
|
s/@BFD_HOST_64_BIT_DEFINED@/1/
|
|
|
|
s/@BFD_HOST_64_BIT@/long long/
|
|
|
|
s/@BFD_HOST_U_64_BIT@/unsigned long long/
|