[GRASS-SVN] r38671 - grass/trunk/lib/vector/diglib

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Aug 10 02:51:43 EDT 2009


Author: mmetz
Date: 2009-08-10 02:51:40 -0400 (Mon, 10 Aug 2009)
New Revision: 38671

Modified:
   grass/trunk/lib/vector/diglib/port_init.c
   grass/trunk/lib/vector/diglib/port_test.c
Log:
conditionalise OFF_T_TEST at compile time

Modified: grass/trunk/lib/vector/diglib/port_init.c
===================================================================
--- grass/trunk/lib/vector/diglib/port_init.c	2009-08-10 06:02:35 UTC (rev 38670)
+++ grass/trunk/lib/vector/diglib/port_init.c	2009-08-10 06:51:40 UTC (rev 38671)
@@ -83,7 +83,11 @@
 #include <grass/glocale.h>
 
 #define TEST_PATTERN 1.3333
+#ifdef HAVE_LONG_LONG_INT
 #define OFF_T_TEST 0x0102030405060708LL
+#else
+#define OFF_T_TEST 0x01020304
+#endif
 #define LONG_TEST 0x01020304
 #define INT_TEST 0x01020304
 #define SHORT_TEST 0x0102

Modified: grass/trunk/lib/vector/diglib/port_test.c
===================================================================
--- grass/trunk/lib/vector/diglib/port_test.c	2009-08-10 06:02:35 UTC (rev 38670)
+++ grass/trunk/lib/vector/diglib/port_test.c	2009-08-10 06:51:40 UTC (rev 38671)
@@ -58,7 +58,11 @@
  */
 
 #define TEST_PATTERN 1.3333
+#ifdef HAVE_LONG_LONG_INT
 #define OFF_T_TEST 0x0102030405060708LL
+#else
+#define OFF_T_TEST 0x01020304
+#endif
 #define LONG_TEST 0x01020304
 #define INT_TEST 0x01020304
 #define SHORT_TEST 0x0102



More information about the grass-commit mailing list