slang-users mailing list

[2009 Date Index] [2009 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-users] [PATCH] Visual C build improvements


I have two simple patches that improve the build under recent versions
of Visual Studio.

The first limits the vsnprintf/_vsnprintf hack to versions of Visual
Studio prior to the 2005 release.  It's possible this could be moved
back even further, but I don't have copies of those older versions
handy with which to test.

Index: slconfig.h
===================================================================
--- src/slconfig.h  (revision 297)
+++ src/slconfig.h  (working copy)
@@ -243,9 +243,11 @@
 #ifdef _MSC_VER
 # define HAVE_VSNPRINTF 1
 # define HAVE_SNPRINTF 1
-/* Grrr, Visual Studio has vnsprintf, but with an '_'. */
+#if _MSC_VER < 1400
+/* Grrr, older versions of Visual Studio have vnsprintf, but with an '_'. */
 # define vsnprintf _vsnprintf
 #endif
+#endif

 #if defined(__unix__) || defined(__DECC) || defined(__BORLAND_V5__)
 #else


This second patch defines the $(RM) build tool to be 'del' for the
Visual C environment:

Index: mkfiles/makefile.all
===================================================================
--- src/mkfiles/makefile.all        (revision 297)
+++ src/mkfiles/makefile.all        (working copy)
@@ -235,6 +235,7 @@
 LIBDEPS = $(RSPFILE) $(OBJDIR)\comp.rsp
 # This needs changing for Windows NT on non-Intel processors
 CPU = _X86_
+RM = del
 TOUCH = touch
 COPY = copy
 #}}}

-- 
Jon Parise (jon of indelible.org)  ::  "Scientia potentia est"



[2009 date index] [2009 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]