Browse Source

conditionalise OFF_T_TEST at compile time

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38671 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 16 years ago
parent
commit
a592d8d666
2 changed files with 8 additions and 0 deletions
  1. 4 0
      lib/vector/diglib/port_init.c
  2. 4 0
      lib/vector/diglib/port_test.c

+ 4 - 0
lib/vector/diglib/port_init.c

@@ -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

+ 4 - 0
lib/vector/diglib/port_test.c

@@ -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