areaDetector / ADSupport

Source code for support libraries for areaDetector.
https://areadetector.github.io/areaDetector/user_guide.html
Other
1 stars 15 forks source link

TIME datatypes won't compile on vxWorks #5

Open MarkRivers opened 8 years ago

MarkRivers commented 8 years ago

I had to disable 4 lines in H5T.c for vxWorks;

#ifndef H5_HAVE_VXWORKS
/* These functions are not working on vxWorks, need to figure out why */
    /* Little-endian 32-bit UNIX time_t */
    H5T_INIT_TYPE(TIME, H5T_UNIX_D32LE_g, COPY, std_u32le, NOSET, -)

    /* Big-endian 32-bit UNIX time_t */
    H5T_INIT_TYPE(TIME, H5T_UNIX_D32BE_g, COPY, std_u32be, NOSET, -)

    /* Little-endian 64-bit UNIX time_t */
    H5T_INIT_TYPE(TIME, H5T_UNIX_D64LE_g, COPY, std_u64le, NOSET, -)

    /* Big-endian 64-bit UNIX time_t */
    H5T_INIT_TYPE(TIME, H5T_UNIX_D64BE_g, COPY, std_u64be, NOSET, -)
#endif

There is probably some data type that is not correctly defined for vxWorks. It is hard to track down because H5T_INIT_TYPE is a deeply nested macro. I asked the HDF Group support what could be causing the problem but they were not willing to help without paying for support.