Skip to content

Commit

Permalink
fixed msvc build
Browse files Browse the repository at this point in the history
  • Loading branch information
filif123 committed Oct 4, 2024
1 parent ab127f8 commit 2c55990
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/location.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
#include "faker-cxx/types/precision.h"
#include "location_data.h"

#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif

namespace faker::location
{
namespace
Expand Down
4 changes: 4 additions & 0 deletions tests/modules/location_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
#include "person_data.h"
#include "string_data.h"

#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif

using namespace ::testing;
using namespace faker;
using namespace faker::location;
Expand Down

0 comments on commit 2c55990

Please sign in to comment.