Skip to content

Commit

Permalink
Merge pull request #12 from sbyna/master
Browse files Browse the repository at this point in the history
fix for hdf5 v1.12.1 where _H5ESpublic_H became H5ESpublic_H
  • Loading branch information
jeanbez authored Jul 28, 2021
2 parents bb60cd5 + 2bc1838 commit a08311d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions commons/async_adaptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,16 @@
#define COMMONS_ASYNC_ADAPTOR_H_
#ifndef H5ES_WAIT_FOREVER
#define H5ES_WAIT_FOREVER INT_MAX
#ifndef _H5ESpublic_H
typedef int H5ES_status_t; // an enum type exists in newer version, this line is just to make compiler happy
// with older version headers

// An enum type H5ES_status_t exists in version 1.12.x and later
// This definition is just to make compiler happy with older version headers
// In hdf5 1.12.0, header file is defined as _H5ESpublic_H and
// in 1.12.1 and later, it's defined as H5ESpublic_H. Checking for both.
#if defined(_H5ESpublic_H) || defined(H5ESpublic_H)
// do nothing
#else
typedef int H5ES_status_t;

#endif

/**
Expand Down

0 comments on commit a08311d

Please sign in to comment.