Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions inkcpp_compiler/binary_emitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <map>
#include <fstream>

#ifndef WIN32
#ifndef _MSC_VER
# include <cstring>
#endif

Expand All @@ -26,7 +26,7 @@ using std::string;

char* strtok_s(char* s, const char* sep, char** context)
{
#if defined(_WIN32) || defined(_WIN64)
#ifdef _MSC_VER
return ::strtok_s(s, sep, context);
#else
if (context == nullptr || sep == nullptr || (s == nullptr && *context == nullptr)) {
Expand Down
4 changes: 2 additions & 2 deletions inkcpp_compiler/reporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ namespace ink::compiler::internal
_list = list;

// Make sure our buffer is empty
#ifdef WIN32
#ifdef _MSC_VER
_Tidy();
#endif
}
Expand All @@ -90,7 +90,7 @@ namespace ink::compiler::internal

// Clear our state
_list = nullptr;
#ifdef WIN32
#ifdef _MSC_VER
_Tidy();
#endif

Expand Down
Loading