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.