diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1998-04-23 22:24:38 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1998-04-23 22:24:38 (GMT) |
commit | ca0a7c164e2e492d5c48d066bacf83a92e675c2e (patch) | |
tree | 37c5124c23ceddf677e9e6516e0dde696152655c /src/H5Tpublic.h | |
parent | eba569241e9675494bcc7df4d0005b4a75a1d82d (diff) | |
download | hdf5-ca0a7c164e2e492d5c48d066bacf83a92e675c2e.zip hdf5-ca0a7c164e2e492d5c48d066bacf83a92e675c2e.tar.gz hdf5-ca0a7c164e2e492d5c48d066bacf83a92e675c2e.tar.bz2 |
[svn-r361] Added Attribute (H5A) code.
Diffstat (limited to 'src/H5Tpublic.h')
-rw-r--r-- | src/H5Tpublic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Tpublic.h b/src/H5Tpublic.h index 4c1a680..1fc4477 100644 --- a/src/H5Tpublic.h +++ b/src/H5Tpublic.h @@ -20,7 +20,7 @@ #include <H5public.h> #include <H5Ipublic.h> -#define HOFFSET(S,M) ((size_t)((const char*)&S.M-(const char*)&S)) +#define HOFFSET(S,M) (offsetof(S,M)) #define HPOFFSET(P,M) ((size_t)((const char*)&(P->M)-(const char*)P)) /* These are the various classes of data types */ |