Skip to content

Commit

Permalink
Attempt to define missing macros in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rhornung67 committed Aug 15, 2024
1 parent 4eb4330 commit 0e45a22
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/common/OutputUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,20 @@
#include<fstream>
#include<sstream>

#if !defined(_WIN32)
#include<sys/types.h>
#include<sys/stat.h>

#if defined(_WIN32)
#else
#include<sys/types.h>
#define _CRT_INTERNAL_NONSTDC_NAMES 1
#include<sys/stat.h>
#if !defined(S_ISDIR) && defined(S_IFMT) && defined(S_IFDIR)
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#endif

#include<filesystem>
#include<direct.h>
#include<io.h>

typedef int mode_t;
Expand Down

0 comments on commit 0e45a22

Please sign in to comment.