From 9fbe9b83bab8ba2a88fc7bd5e8aa4854afd4bc7f Mon Sep 17 00:00:00 2001 From: aap Date: Sun, 2 Aug 2020 09:24:18 +0200 Subject: [PATCH] fixed some includes and defines --- src/base.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/base.cpp b/src/base.cpp index a239b63..189d45c 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -5,6 +5,13 @@ #include #include +#define PSEP_C '/' +#define PSEP_S "/" +#ifdef __unix__ +#include +#include +#endif + #include "rwbase.h" #include "rwerror.h" #include "rwplg.h" @@ -638,17 +645,10 @@ Matrix::identityError(void) return dot(r,r) + dot(u,u) + dot(a,a) + dot(pos,pos); } -#define PSEP_C '/' -#define PSEP_S "/" -#ifndef _WIN32 -#include -#include -#endif - void correctPathCase(char *filename) { -#ifndef _WIN32 +#ifdef __unix__ DIR *direct; struct dirent *dirent; @@ -688,7 +688,7 @@ makePath(char *filename) for(size_t i = 0; i < len; i++) if(filename[i] == '/' || filename[i] == '\\') filename[i] = PSEP_C; -#ifndef _WIN32 +#ifdef __unix__ correctPathCase(filename); #endif }