From f0b1dc8b67237040bbebdca0bf96d552a417490a Mon Sep 17 00:00:00 2001 From: meep-eep Date: Sat, 14 May 2005 10:55:34 +0000 Subject: [PATCH] Some small fixes. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1744 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/msvc++/UrQuanMasters.dsp | 4 ++++ sc2/src/port.c | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/sc2/src/msvc++/UrQuanMasters.dsp b/sc2/src/msvc++/UrQuanMasters.dsp index 77f9503ac..46da5eba8 100644 --- a/sc2/src/msvc++/UrQuanMasters.dsp +++ b/sc2/src/msvc++/UrQuanMasters.dsp @@ -3517,6 +3517,10 @@ SOURCE=..\sc2code\misc.c # End Source File # Begin Source File +SOURCE=..\sc2code\mouse_err.c +# End Source File +# Begin Source File + SOURCE=..\sc2code\nameref.h # End Source File # Begin Source File diff --git a/sc2/src/port.c b/sc2/src/port.c index 857ec1c61..f07f432a9 100644 --- a/sc2/src/port.c +++ b/sc2/src/port.c @@ -20,14 +20,15 @@ * Created by Serge van den Boom */ +#include "port.h" + #include -#include "errno.h" +#include #include #include -#ifndef HAVE_READDIR_R +#if !defined (_MSC_VER) && !defined (HAVE_READDIR_R) # include #endif -#include "port.h" #ifndef HAVE_STRUPR char * @@ -82,7 +83,7 @@ setenv (const char *name, const char *value, int overwrite) } #endif -#ifndef HAVE_READDIR_R +#if !defined (_MSC_VER) && !defined (HAVE_READDIR_R) // NB. This function calls readdir() directly, and as such has the same // reentrance issues as that function. For the purposes of UQM it will // do though.