[svn-r11359] Purpose: Bug fix/maintenance/new feature

Description: Currently we are trying to match excatly Fortran and C types.
             Unfortunately, some systems (SX-6) provide compiler switches
             (-ew) that make ALL Fortran types to be at least of size 8.
             As a result, Fortran library cannot be compiled.

Solution: Allow INTEGER(HID_T) type to be 8 bytes if necessary. The values
          of this type are originated in the C library and can be safely
          passed back and forth. Please note that we cannot do the same
          for INTEGER(SIZE_T) type. Fortunately there is a switch
          that allows size_t be 8 bytes for both C and Fortran compilers.


Platforms tested: It is a minor change, therefore SX-6 only;
                  daily tests will do the rest :-)

Misc. update:
This commit is contained in:
Elena Pourmal 2005-09-07 11:06:49 -05:00
parent 436b9db1fa
commit 181102ff74

View File

@ -243,6 +243,8 @@ int main()
writeToFiles("HID_T", "hid_t_f", 2);
#elif defined H5_FORTRAN_HAS_INTEGER_1 && H5_SIZEOF_HID_T >= 1
writeToFiles("HID_T", "hid_t_f", 1);
#if defined H5_FORTRAN_HAS_INTEGER_8 && H5_SIZEOF_HID_T >= 4
writeToFiles("HID_T", "hid_t_f", 8);
#else
/* Error: couldn't find a size for hid_t */
return -1;