]> git.donarmstrong.com Git - mothur.git/blobdiff - seqsummarycommand.cpp
bug fixes
[mothur.git] / seqsummarycommand.cpp
index abef12696c9f09e065a8d76223858e89ee129582..a47364adf9cf436a6f780f541f1fcfbf6bf3ef04 100644 (file)
@@ -343,8 +343,12 @@ int SeqSummaryCommand::driverCreateSummary(vector<int>& startPosition, vector<in
                                count++;
                        }
                        
-                       unsigned long int pos = in.tellg();
-                       if ((pos == -1) || (pos >= filePos->end)) { break; }
+                       #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)
+                               unsigned long int pos = in.tellg();
+                               if ((pos == -1) || (pos >= filePos->end)) { break; }
+                       #else
+                               if (in.eof()) { break; }
+                       #endif
                        
                        //report progress
                        //if((count) % 100 == 0){       m->mothurOut(toString(count)); m->mothurOutEndLine();           }