|
From: <sm...@us...> - 2009-03-16 15:22:47
|
Revision: 9744
http://plplot.svn.sourceforge.net/plplot/?rev=9744&view=rev
Author: smekal
Date: 2009-03-16 15:22:26 +0000 (Mon, 16 Mar 2009)
Log Message:
-----------
For Visual C++ 2003 and later INT_MIN must be used, otherwise PLINT_MIN is unsigned and 2147483648 NOT -2147483648, see http://msdn.microsoft.com/en-us/library/4kh09110(VS.71).aspx for details.
Modified Paths:
--------------
trunk/include/plplot.h
Modified: trunk/include/plplot.h
===================================================================
--- trunk/include/plplot.h 2009-03-16 06:08:48 UTC (rev 9743)
+++ trunk/include/plplot.h 2009-03-16 15:22:26 UTC (rev 9744)
@@ -167,7 +167,20 @@
typedef unsigned int PLUINT;
typedef int PLINT;
typedef __int64 PLINT64;
-#define PLINT_MIN -2147483648
+/* for Visual C++ 2003 and later INT_MIN must be used, otherwise
+ PLINT_MIN is unsigned and 2147483648 NOT -2147483648, see
+ http://msdn.microsoft.com/en-us/library/4kh09110(VS.71).aspx for
+ details */
+#ifdef _MSC_VER
+ #if _MSC_VER>1309
+ #include <Limits.h>
+ #define PLINT_MIN INT_MIN
+ #else
+ #define PLINT_MIN -2147483648
+ #endif
+#else
+ #define PLINT_MIN -2147483648
+#endif
/*
typedef unsigned int PLUINT;
typedef int PLINT;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|