summaryrefslogtreecommitdiffstats
path: root/src/H5Tpublic.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1998-04-23 22:24:38 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1998-04-23 22:24:38 (GMT)
commitca0a7c164e2e492d5c48d066bacf83a92e675c2e (patch)
tree37c5124c23ceddf677e9e6516e0dde696152655c /src/H5Tpublic.h
parenteba569241e9675494bcc7df4d0005b4a75a1d82d (diff)
downloadhdf5-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.h2
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 */