switch(type) {
case HDF_FLOAT64 :
-#ifdef PCLINUX
+#if defined (PCLINUX) || defined (PCLINUX64)
type_hdf = H5T_IEEE_F64BE;
#else
type_hdf = H5T_IEEE_F64LE;
break;
case HDF_INT32 :
-#ifdef PCLINUX
+#if defined (PCLINUX) || defined (PCLINUX64)
type_hdf = H5T_STD_I32BE;
#else
type_hdf = H5T_NATIVE_INT;
hdf_idt type_hdf;
if ((type_hdf = H5Aget_type(id)) >= 0) {
-#ifdef PCLINUX
+#if defined (PCLINUX) || defined (PCLINUX64)
if ((H5Tget_class(type_hdf) == H5T_INTEGER) && (H5Tget_size(type_hdf) == 4))
type_hdf = H5T_NATIVE_INT;
#endif
{
hdf_idt type_id;
int ret = 0;
-#ifdef PCLINUX
+#if defined (PCLINUX) || defined (PCLINUX64)
int isI32BE = 0;
#endif
if ((type_id = H5Aget_type(id)) < 0)
return -1;
-#ifdef PCLINUX
+#if defined (PCLINUX) || defined (PCLINUX64)
if((H5Tget_class(type_id) == H5T_INTEGER) && (H5Tget_size(type_id) == 4)) {
isI32BE = 1; /* See HDFattrCreate */
if (H5Tconvert(H5T_NATIVE_INT,H5T_STD_I32BE,1,(void *)val,NULL,(hid_t)NULL) < 0)
ret = H5Awrite(id,type_id, val);
-#ifdef PCLINUX
+#if defined (PCLINUX) || defined (PCLINUX64)
if (isI32BE && (H5Tconvert(H5T_STD_I32BE,H5T_NATIVE_INT,1,(void *)val,NULL,(hid_t)NULL) < 0))
return -1;
#endif
switch(type)
{
case HDF_FLOAT64 :
-#ifdef PCLINUX
+#if defined (PCLINUX) || defined (PCLINUX64)
type_hdf = H5T_IEEE_F64BE;
#else
type_hdf = H5T_IEEE_F64LE;
break;
case HDF_INT32 :
-#ifdef PCLINUX
+#if defined (PCLINUX) || defined (PCLINUX64)
type_hdf = H5T_STD_I32BE;
#else
type_hdf = H5T_NATIVE_INT;
if ((datatype = H5Dget_type(id)) < 0)
return -1;
-#ifdef PCLINUX
+#if defined (PCLINUX) || defined (PCLINUX64)
if ((H5Tget_class(datatype) == H5T_INTEGER) && (H5Tget_size(datatype) == 4))
datatype = H5T_NATIVE_INT;
#endif
{
hdf_idt datatype;
hdf_err ret;
-#ifdef PCLINUX
+#if defined (PCLINUX) || defined (PCLINUX64)
int isI32BE = 0;
int size = 0;
#endif
if ((datatype = H5Dget_type(id)) < 0)
return -1;
-#ifdef PCLINUX
+#if defined (PCLINUX) || defined (PCLINUX64)
if((H5Tget_class(datatype) == H5T_INTEGER) && (H5Tget_size(datatype) == 4)) {
isI32BE = 1; /* See HDFdatasetCreate */
if ((ret = H5Dwrite(id, datatype, H5S_ALL, H5S_ALL, H5P_DEFAULT, val)) < 0)
return -1;
-#ifdef PCLINUX
+#if defined (PCLINUX) || defined (PCLINUX64)
if (isI32BE && (H5Tconvert(H5T_STD_I32BE, H5T_NATIVE_INT, size, (void *)val, NULL, (hid_t)0) < 0))
return -1;
#endif