summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2006-05-10 07:41:42 +0000
committerJean Delvare <jdelvare@suse.de>2006-05-10 07:41:42 +0000
commit816d042552bd3d522a5c996f9d85ad42d7a5d55a (patch)
treed9aa9a8a76014ae7f1e6ddd719fcee6f95e08565 /types.h
parentfca422120bba8b202882ee7784b2b705c3a26152 (diff)
downloaddmidecode-git-816d042552bd3d522a5c996f9d85ad42d7a5d55a.tar.gz
Automatically enable the unaligned memory access workaround on ia64.
Diffstat (limited to 'types.h')
-rw-r--r--types.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/types.h b/types.h
index 86e2a9a..26b2289 100644
--- a/types.h
+++ b/types.h
@@ -1,22 +1,22 @@
#ifndef TYPES_H
#define TYPES_H
+#include "config.h"
+
typedef unsigned char u8;
typedef unsigned short u16;
typedef signed short i16;
typedef unsigned int u32;
/*
- * These macros help us solve problems on systems that don't support
- * non-aligned memory access. This isn't a big issue IMHO, since the tools
- * in this package are intended mainly for Intel and compatible systems,
- * which are little-endian and support non-aligned memory access. Anyway,
- * you may use the following defines to control the way it works:
- * - Define BIGENDIAN on big-endian systems.
+ * You may use the following defines to adjust the type definitions
+ * depending on the architecture:
+ * - Define BIGENDIAN on big-endian systems. Untested, as all target
+ * systems to date are little-endian.
* - Define ALIGNMENT_WORKAROUND if your system doesn't support
* non-aligned memory access. In this case, we use a slower, but safer,
- * memory access method.
- * You most probably will have to define none or the two of them.
+ * memory access method. This should be done automatically in config.h
+ * for architectures which need it.
*/
#ifdef BIGENDIAN