Revision: 42022
          http://brlcad.svn.sourceforge.net/brlcad/?rev=42022&view=rev
Author:   starseeker
Date:     2011-01-07 19:54:11 +0000 (Fri, 07 Jan 2011)

Log Message:
-----------
Make pstdint.h on Windows conditional on _MSC_VER being less than or equal 1500 
(perhaps it should be < 1600?) - VC++ 2010 handles stdint.h correctly with the 
standard tests, but the older compiler does not.

Modified Paths:
--------------
    brlcad/branches/cmake/include/common.h

Modified: brlcad/branches/cmake/include/common.h
===================================================================
--- brlcad/branches/cmake/include/common.h      2011-01-07 19:08:37 UTC (rev 
42021)
+++ brlcad/branches/cmake/include/common.h      2011-01-07 19:54:11 UTC (rev 
42022)
@@ -109,7 +109,10 @@
  * optional uintptr_t type.
  */
 #if !defined(INT8_MAX) || !defined(INT16_MAX) || !defined(INT32_MAX) || 
!defined(INT64_MAX)
-#  ifdef WIN32 /* CMake defines __STDC__, so shortcircuit on windows to 
explicitely pull pstdint.h */
+#  if (defined _MSC_VER && (_MSC_VER <= 1500)) 
+     /* Older Versions of Visual C++ seem to need pstdint.h 
+      * but still pass the tests below, so force it based on
+      * version (ugh.) */
 #    include "pstdint.h"
 #  elif defined(__STDC__) || defined(__STRICT_ANSI__) || 
defined(__SIZE_TYPE__) || defined(HAVE_STDINT_H)
 #    define __STDC_LIMIT_MACROS 1


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

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to