[GRASS-SVN] r33700 - grass/trunk/include/iostream

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Oct 6 19:10:30 EDT 2008


Author: pkelly
Date: 2008-10-06 19:10:29 -0400 (Mon, 06 Oct 2008)
New Revision: 33700

Modified:
   grass/trunk/include/iostream/ami_stream.h
Log:
Conditionalise fseeko() on HAVE_LARGEFILES


Modified: grass/trunk/include/iostream/ami_stream.h
===================================================================
--- grass/trunk/include/iostream/ami_stream.h	2008-10-06 19:40:37 UTC (rev 33699)
+++ grass/trunk/include/iostream/ami_stream.h	2008-10-06 23:10:29 UTC (rev 33700)
@@ -52,6 +52,8 @@
 #include <iostream>
 using namespace std;
 
+#include <grass/config.h>
+
 #define MAX_STREAMS_OPEN 200
 
 #include "mm.h" // Get the memory manager.
@@ -429,7 +431,11 @@
     seek_offset = offset * sizeof(T);
   }
 
+#ifdef HAVE_LARGEFILES
   if (fseeko(fp, seek_offset, SEEK_SET) == -1) {
+#else
+  if (fseek(fp, seek_offset, SEEK_SET) == -1) {
+#endif
     cerr << "AMI_STREAM::seek offset=" << seek_offset << " failed.\n";
     assert(0);
     exit(1);



More information about the grass-commit mailing list