xfreecell-1.0.5b-gcc43.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --- a/card.cpp
  2. +++ b/card.cpp
  3. @@ -1,5 +1,6 @@
  4. +#include <cstdlib>
  5. #include <cstdio>
  6. -#include <math.h>
  7. +#include <cmath>
  8. #ifdef SHAPE
  9. #include <X11/Xlib.h>
  10. #include <X11/Xutil.h>
  11. --- a/freecell.cpp
  12. +++ b/freecell.cpp
  13. @@ -1,6 +1,7 @@
  14. #include <dirent.h>
  15. #include <fcntl.h>
  16. -#include <stdlib.h>
  17. +#include <cstdlib>
  18. +#include <cstring>
  19. #include <sys/stat.h>
  20. #include <sys/time.h>
  21. #include <sys/types.h>
  22. --- a/option.cpp
  23. +++ b/option.cpp
  24. @@ -3,7 +3,9 @@
  25. #include <fcntl.h>
  26. #include <dirent.h>
  27. #include <unistd.h>
  28. -#include <stdio.h>
  29. +#include <cstdlib>
  30. +#include <cstdio>
  31. +#include <cstring>
  32. #include "general.h"
  33. #include "option.h"
  34. --- a/subwindows.cpp
  35. +++ b/subwindows.cpp
  36. @@ -3,7 +3,8 @@
  37. #include <fcntl.h>
  38. #include <dirent.h>
  39. #include <unistd.h>
  40. -#include <stdio.h>
  41. +#include <cstdlib>
  42. +#include <cstdio>
  43. #include "general.h"
  44. #include "subwindows.h"
  45. --- a/widget/widget.h
  46. +++ b/widget/widget.h
  47. @@ -4,7 +4,9 @@
  48. #include <X11/Xlib.h>
  49. #include <X11/Xutil.h>
  50. #include <X11/keysym.h>
  51. -#include <stdio.h>
  52. +#include <cstdlib>
  53. +#include <cstdio>
  54. +#include <cstring>
  55. #include <vector>
  56. #include <string>