diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1997-09-15 19:07:03 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1997-09-15 19:07:03 (GMT) |
commit | fec4cf898953d2a95401c9fabb6b730c22b2a1b6 (patch) | |
tree | 9171d889e8980fdb1ccae7c6d9fa4cc151068e9f /src/H5Tpublic.h | |
parent | dcdc0d7dfff8359ef5bdb65551b23a166a75a116 (diff) | |
download | hdf5-fec4cf898953d2a95401c9fabb6b730c22b2a1b6.zip hdf5-fec4cf898953d2a95401c9fabb6b730c22b2a1b6.tar.gz hdf5-fec4cf898953d2a95401c9fabb6b730c22b2a1b6.tar.bz2 |
[svn-r81] Finished basic data-type conversions, files are now portably written on most
"normal" architectures.
Diffstat (limited to 'src/H5Tpublic.h')
-rw-r--r-- | src/H5Tpublic.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/H5Tpublic.h b/src/H5Tpublic.h index 60686fa..daca824 100644 --- a/src/H5Tpublic.h +++ b/src/H5Tpublic.h @@ -37,6 +37,23 @@ #define H5T_BIGENDIAN 0 #define H5T_LITTLEENDIAN 1 +/* Define the machine's architecture */ +/* +WARNING! + This is _extremly_ crude is is only valid for very generic architectures, + anything with a wierd size of integer or wacky floating-point format will + _not_ work with this hack. It needs to be replaced with Robb's much more + comprehensive code from H5detect.c. -QAK +WARNING! +*/ +#define H5T_ARCH_BIGENDIAN 0 +#define H5T_ARCH_LITTLEENDIAN 1 +#ifdef WORDS_BIGENDIAN +#define H5T_ARCH_TYPE H5T_ARCH_BIGENDIAN +#else /* WORDS_BIGENDIAN */ +#define H5T_ARCH_TYPE H5T_ARCH_LITTLEENDIAN +#endif /* WORDS_BIGENDIAN */ + typedef struct { hatom_t base; /* Basic datatype */ uint8 len; /* Length of base-type, in bytes */ |