]> git.donarmstrong.com Git - mothur.git/blobdiff - chimeracheckcommand.cpp
bug fixes
[mothur.git] / chimeracheckcommand.cpp
index 4d99aa4d32a19b3f8db893c9f30186ad878a50d5..18554399e43220b596723a745142b49d2d8c123e 100644 (file)
@@ -394,8 +394,12 @@ int ChimeraCheckCommand::driver(linePair* filePos, string outputFName, string fi
                        }
                        delete candidateSeq;
                        
-                       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();         }