Windows Fixes

This commit is contained in:
Jack Andersen 2016-06-22 12:15:53 -10:00
parent a0241574ba
commit 0c606fa9b7
2 changed files with 12 additions and 2 deletions

View File

@ -5,7 +5,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
static logvisor::Module Log(_S("amuseconv")); static logvisor::Module Log("amuseconv");
enum ConvType enum ConvType
{ {

View File

@ -1,10 +1,20 @@
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #include <windows.h>
#include <stdio.h>
#else #else
#include <sys/stat.h>
#include <dirent.h> #include <dirent.h>
#endif #endif
#include <sys/stat.h>
#if !defined(S_ISREG) && defined(S_IFMT) && defined(S_IFREG)
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#endif
#if !defined(S_ISDIR) && defined(S_IFMT) && defined(S_IFDIR)
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#endif
#include <map> #include <map>
#include "amuse/DirectoryEnumerator.hpp" #include "amuse/DirectoryEnumerator.hpp"