]> git.donarmstrong.com Git - mothur.git/blobdiff - trimseqscommand.cpp
bug fixes
[mothur.git] / trimseqscommand.cpp
index 320bc41f4816eccb8f4b0fb19cb92864e91055d2..1d70fb17d7fd7391de4a147ea73367c67f96f786 100644 (file)
@@ -571,9 +571,13 @@ int TrimSeqsCommand::driverCreateTrim(string filename, string qFileName, string
                                count++;
                        }
                        
-                       unsigned long int pos = inFASTA.tellg();
-                       if ((pos == -1) || (pos >= line->end)) { break; }
-                       
+                       #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)
+                               unsigned long int pos = inFASTA.tellg();
+                               if ((pos == -1) || (pos >= line->end)) { break; }
+                       #else
+                               if (inFASTA.eof()) { break; }
+                       #endif
+                               
                        //report progress
                        if((count) % 1000 == 0){        m->mothurOut(toString(count)); m->mothurOutEndLine();           }