Skip to content

Commit

Permalink
add missing windows.h
Browse files Browse the repository at this point in the history
  • Loading branch information
wgtmac committed Mar 21, 2024
1 parent 906383d commit 0cc6765
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion c++/test/TestTimezone.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
#include "wrap/gtest-wrapper.h"

#ifdef _MSC_VER
// clang-format off
#include "windows.h"
#include "processenv.h"
// clang-format on
#endif

#include <iostream>
Expand Down Expand Up @@ -417,7 +420,7 @@ namespace orc {

bool delEnv(const char* name) {
#ifdef _MSC_VER
return SetEnvironmentVariableA(name, nullptr));
return SetEnvironmentVariableA(name, nullptr);
#else
return unsetenv(name) == 0;
#endif
Expand Down

0 comments on commit 0cc6765

Please sign in to comment.