we test for them in configure; instead of hardcoding it in yet
another place, use the information we have
Reviewed-on: http://gerrit.openafs.org/442
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
/* Define as the return type of signal handlers (int or void). */
#undef RETSIGTYPE
+/* The size of `long', as computed by sizeof. */
+#define SIZEOF_LONG 4
+
/* Define to `unsigned' if <sys/types.h> doesn't define. */
//#undef size_t unsigned int
#endif
/*
- * define "LONG_IS_32_BITS" only if sizeof(long)==4.
- * This avoids use of bit fields (your compiler may be sloppy with them).
- */
-
-/* XXX shouldn't this be !AFS_64BIT_ENV ? */
-#if !defined(cray) && !defined(AFS_ALPHA_LINUX20_ENV) && !defined(AFS_IA64_LINUX20_ENV) && !defined(AFS_AMD64_LINUX20_ENV) && !defined(AFS_PPC64_LINUX20_ENV) & !defined(AFS_S390X_LINUX20_ENV)
-#define LONG_IS_32_BITS
-#endif
-
-/*
* define "B64" to be the declaration for a 64 bit integer.
* XXX this feature is currently unused, see "endian" comment below.
*/
typedef union {
unsigned char b[8];
struct {
-#if defined(LONG_IS_32_BITS)
+#if (SIZEOF_LONG == 4)
/* long is often faster than a 32-bit bit field */
long i0;
long i1;