diff --git a/src/common/FormatHelper.h b/src/common/FormatHelper.h index 0e77a2e19..004dc1803 100644 --- a/src/common/FormatHelper.h +++ b/src/common/FormatHelper.h @@ -5,10 +5,10 @@ #include #include -#ifdef __apple__ -#include +#ifdef __clang__ + #include #else -#include +# include #endif namespace faker @@ -16,7 +16,7 @@ namespace faker class FormatHelper { public: - #ifdef __apple__ + #ifdef __clang__ template static std::string format(fmt::format_string fmt, Args&&... args) { diff --git a/src/common/StringHelper.cpp b/src/common/StringHelper.cpp index 826480364..00fe693e9 100644 --- a/src/common/StringHelper.cpp +++ b/src/common/StringHelper.cpp @@ -6,10 +6,10 @@ #include #include -#ifdef __apple__ -#include "fmt/format.h" +#ifdef __clang__ + #include "fmt/format.h" #else -#include + #include #endif namespace faker diff --git a/src/common/StringHelper.h b/src/common/StringHelper.h index ae0060ab0..26629e5a0 100644 --- a/src/common/StringHelper.h +++ b/src/common/StringHelper.h @@ -3,10 +3,10 @@ #include #include -#ifdef __apple__ -#include "fmt/format.h" +#ifdef __clang__ + #include "fmt/format.h" #else -#include + #include #endif namespace faker