Selaa lähdekoodia

Conditionalise fseeko() on HAVE_LARGEFILES

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33700 15284696-431f-4ddb-bdfa-cd5b030d7da7
Paul Kelly 16 vuotta sitten
vanhempi
commit
72a39e6a1a
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6 0
      include/iostream/ami_stream.h

+ 6 - 0
include/iostream/ami_stream.h

@@ -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 @@ AMI_err AMI_STREAM<T>::seek(off_t offset) {
     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);