]> git.donarmstrong.com Git - mothur.git/blobdiff - chimerapintailcommand.cpp
bug fixes
[mothur.git] / chimerapintailcommand.cpp
index 398d37ac7d4a25d51c56a1ce4bfea3051c2c12eb..7c3b24b8c4595079a053eab7ecd9179a1ac72d69 100644 (file)
@@ -494,8 +494,12 @@ int ChimeraPintailCommand::driver(linePair* filePos, string outputFName, string
                        }
                        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();         }