Skip to content

Commit 4e5a539

Browse files
committed
Fix build on windows for test_float_value.cpp and for test_double_value.cpp
1 parent 4f127af commit 4e5a539

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tests/test_double_value.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Official Source Code: https://github.com/wsjcpp/wsjcpp-yaml
3030
#include <fstream>
3131
#include <wsjcpp_yaml.h>
3232

33-
#ifdef WINDOWS
33+
#if defined(_WIN32)
3434
#include <direct.h>
3535
#define GetCurrentDir _getcwd
3636
#else

src/tests/test_float_value.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Official Source Code: https://github.com/wsjcpp/wsjcpp-yaml
3030
#include <fstream>
3131
#include <wsjcpp_yaml.h>
3232

33-
#ifdef WINDOWS
33+
#if defined(_WIN32)
3434
#include <direct.h>
3535
#define GetCurrentDir _getcwd
3636
#else

0 commit comments

Comments
 (0)