Skip to content

Commit

Permalink
Changed __APPLE__ to __CLANG__, seems like apple clang isn't being de…
Browse files Browse the repository at this point in the history
…tected
  • Loading branch information
eric-bodhi committed Jan 1, 2024
1 parent 0edd6f3 commit b51f861
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/common/FormatHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
#include <string>
#include <vector>

#ifdef __apple__
#include <fmt/format.h>
#ifdef __clang__
#include <fmt/format.h>
#else
#include <format>
# include <format>
#endif

namespace faker
{
class FormatHelper
{
public:
#ifdef __apple__
#ifdef __clang__
template <typename... Args>
static std::string format(fmt::format_string<Args...> fmt, Args&&... args)
{
Expand Down
6 changes: 3 additions & 3 deletions src/common/StringHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
#include <locale>
#include <sstream>

#ifdef __apple__
#include "fmt/format.h"
#ifdef __clang__
#include "fmt/format.h"
#else
#include <format>
#include <format>
#endif

namespace faker
Expand Down
6 changes: 3 additions & 3 deletions src/common/StringHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#include <string>
#include <vector>

#ifdef __apple__
#include "fmt/format.h"
#ifdef __clang__
#include "fmt/format.h"
#else
#include <format>
#include <format>
#endif

namespace faker
Expand Down

0 comments on commit b51f861

Please sign in to comment.