Revision: 68986
          http://sourceforge.net/p/brlcad/code/68986
Author:   starseeker
Date:     2016-10-04 19:59:41 +0000 (Tue, 04 Oct 2016)
Log Message:
-----------
make sure _MSC_VER is defined before comparing it

Modified Paths:
--------------
    brlcad/trunk/src/other/libnetpbm/pm_config.h.in

Modified: brlcad/trunk/src/other/libnetpbm/pm_config.h.in
===================================================================
--- brlcad/trunk/src/other/libnetpbm/pm_config.h.in     2016-10-04 19:48:54 UTC 
(rev 68985)
+++ brlcad/trunk/src/other/libnetpbm/pm_config.h.in     2016-10-04 19:59:41 UTC 
(rev 68986)
@@ -327,7 +327,7 @@
   #define TMPDIR "/tmp"
 #else
   /* P_tmpdir is no-go on newer MSVC - see 
https://connect.microsoft.com/VisualStudio/feedback/details/1107169/vs-2015-ctp-5-c-c-p-tmpdir-is-never-defined
 */
-  #if (_MSC_VER > 1800)
+  #if defined(_MSC_VER) && (_MSC_VER > 1800)
     #define TMPDIR GetTempPathA()
   #else
     /* Use POSIX value P_tmpdir from libc */

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to