]> git.donarmstrong.com Git - mothur.git/blobdiff - chimeraslayercommand.cpp
bug fixes
[mothur.git] / chimeraslayercommand.cpp
index 8a80d4dc2517309b3778186ed6ac4e5c937a73f1..996843b7da9a1c246dc6b38310c0e8f35c327c94 100644 (file)
@@ -439,8 +439,12 @@ int ChimeraSlayerCommand::driver(linePair* filePos, string outputFName, string f
                        }
                        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();         }