Ticket #21295: changeset_r4143.diff

File changeset_r4143.diff, 2.2 KB (added by jhaitas@…, 15 years ago)

patch from upstream

  • branches/std-2.1/src/H5Zbzip2.c

     
    2323  char *libver, *versionp, *datep, *sep;
    2424
    25 #if H5_VERS_MAJOR == 1 && H5_VERS_MINOR < 7
     25/* The conditional below is somewhat messy, but it is necessary because
     26  the THG team has decided to fix an API inconsistency in the definition
     27  of the H5Z_class_t structure in version 1.8.3 */
     28#if (H5_VERS_MAJOR == 1 && H5_VERS_MINOR < 7) || \
     29    (H5_USE_16_API && (H5_VERS_MAJOR > 1 || \
     30      (H5_VERS_MAJOR == 1 && (H5_VERS_MINOR > 8 || \
     31        (H5_VERS_MINOR == 8 && H5_VERS_RELEASE >= 3)))))
    2632   /* 1.6.x */
    2733  H5Z_class_t filter_class = {
     
    3339  };
    3440#else
    35    /* 1.7.x */
     41   /* 1.8.x where x < 3 */
    3642  H5Z_class_t filter_class = {
    3743    H5Z_CLASS_T_VERS,             /* H5Z_class_t version */
     
    4349    (H5Z_func_t)(bzip2_deflate)   /* filter_func */
    4450};
    45 #endif /* if H5_VERSION < "1.7" */
     51#endif
    4652
    4753  /* Register the filter class for the bzip2 compressor. */
  • branches/std-2.1/src/H5Zlzo.c

     
    4343#ifdef HAVE_LZO_LIB
    4444
    45 #if H5_VERS_MAJOR == 1 && H5_VERS_MINOR < 7
     45/* The conditional below is somewhat messy, but it is necessary because
     46  the THG team has decided to fix an API inconsistency in the definition
     47  of the H5Z_class_t structure in version 1.8.3 */
     48#if (H5_VERS_MAJOR == 1 && H5_VERS_MINOR < 7) || \
     49    (H5_USE_16_API && (H5_VERS_MAJOR > 1 || \
     50      (H5_VERS_MAJOR == 1 && (H5_VERS_MINOR > 8 || \
     51        (H5_VERS_MINOR == 8 && H5_VERS_RELEASE >= 3)))))
    4652   /* 1.6.x */
    4753  H5Z_class_t filter_class = {
     
    5359  };
    5460#else
    55    /* 1.7.x */
     61   /* 1.8.x where x < 3 */
    5662  H5Z_class_t filter_class = {
    5763    H5Z_CLASS_T_VERS,             /* H5Z_class_t version */
     
    6369    (H5Z_func_t)(lzo_deflate)     /* filter_func */
    6470  };
    65 #endif /* if H5_VERSION < "1.7" */
     71#endif
    6672
    6773  /* Init the LZO library */