]> git.donarmstrong.com Git - mothur.git/blobdiff - classifyseqscommand.cpp
bug fixes
[mothur.git] / classifyseqscommand.cpp
index e934d9d6d114a18759ec317185cd01085ac72052..33f49e5fc4b322301c4620cf4c9263fe751ab259 100644 (file)
@@ -767,8 +767,12 @@ int ClassifySeqsCommand::driver(linePair* filePos, string taxFName, string tempT
                        }
                        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();         }