]> git.donarmstrong.com Git - mothur.git/blobdiff - screenseqscommand.cpp
bug fixes
[mothur.git] / screenseqscommand.cpp
index 5f5d22f0e4a3775a4cea1902c460a77378f645f0..581264cbe62b1ecc6b56a848476bdccff1d31545 100644 (file)
@@ -662,8 +662,12 @@ int ScreenSeqsCommand::driver(linePair* filePos, string goodFName, string badAcc
                        count++;
                        }
                        
-                       unsigned long int pos = inFASTA.tellg();
-                       if ((pos == -1) || (pos >= filePos->end)) { break; }
+                       #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)
+                               unsigned long int pos = inFASTA.tellg();
+                               if ((pos == -1) || (pos >= filePos->end)) { break; }
+                       #else
+                               if (inFASTA.eof()) { break; }
+                       #endif
                        
                        //report progress
                        if((count) % 100 == 0){ m->mothurOut("Processing sequence: " + toString(count)); m->mothurOutEndLine();         }