010_cxx_standard.diff 740 B

12345678910111213141516171819202122232425262728293031323334
  1. --- langdrill-0.3.orig/src/config.hh
  2. +++ langdrill-0.3/src/config.hh
  3. @@ -31,7 +31,7 @@
  4. #include <stdio.h>
  5. #include <string.h>
  6. -#include <fstream.h>
  7. +#include <fstream>
  8. #include <stdlib.h>
  9. #include <vdk/dlist.h>
  10. --- langdrill-0.3.orig/src/main.hh
  11. +++ langdrill-0.3/src/main.hh
  12. @@ -29,7 +29,7 @@
  13. #ifndef __main_hh__
  14. #define __main_hh__
  15. -#include <fstream.h>
  16. +#include <fstream>
  17. #include <unistd.h>
  18. #include <time.h>
  19. --- langdrill-0.3.orig/src/config.cc
  20. +++ langdrill-0.3/src/config.cc
  21. @@ -347,7 +347,7 @@
  22. char message[MAX_CHARS_FOR_MESSAGE];
  23. iconv_t direct = (iconv_t)-1, reverse = (iconv_t)-1;
  24. - ifstream in(_name);
  25. + std::ifstream in(_name);
  26. while(1){
  27. in.getline(buff,MAX_CHARS_FOR_STRING);
  28. lineNr++;