Skip to content

Commit

Permalink
Only use the fmt complex formatter for fmt v9 and up
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAce committed May 31, 2023
1 parent 3faaf65 commit a105183
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/h5pp/details/h5ppFormatComplex.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#include "h5ppFormat.h"

#if defined(H5PP_USE_FMT) && defined(FMT_FORMAT_H_) && !defined(H5PP_NO_COMPLEX_FMT)
#if !defined(FMT_USE_COMPLEX)
#if defined(H5PP_USE_FMT) && defined(FMT_FORMAT_H_) && defined(FMT_VERSION) && !defined(H5PP_NO_COMPLEX_FMT)
#if !defined(FMT_USE_COMPLEX) && FMT_VERSION > 90000
#define FMT_USE_COMPLEX 1
#include <complex>
#include <type_traits>
Expand Down

0 comments on commit a105183

Please sign in to comment.