fix_clang_ftbfs.patch 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. Description: Fix FTBFS with clang instead of gcc
  2. Bug-Debian: https://bugs.debian.org/756440
  3. Author: Alexander <sanek23994@gmail.com>
  4. Last-Update: 2014-07-30
  5. --- a/src/project.h
  6. +++ b/src/project.h
  7. @@ -122,6 +122,14 @@
  8. graphical user interface.
  9. */
  10. +class project;
  11. +
  12. +bool ReadGPR_OLD(project &, istream &, bool, bool = false); ///< this is for the very old version.
  13. +bool ReadGPR_v100(project &, istream &, bool, bool = false); ///< this is for the version 1.00.
  14. +bool ReadGPR_v110(project &, istream &, bool, bool = false); ///< this is for the version 1.10.
  15. +/// This is an input function for the v1.11 ghemical file format.
  16. +bool ReadGPR(project &, istream &, bool, bool = false);
  17. +
  18. class project :
  19. public custom_transformer_client,
  20. public model
  21. @@ -207,11 +215,11 @@
  22. // methods for file I/O : ReadGPR and WriteGPR are friend functions so that it would be easier to "borrow" them elsewhere...
  23. // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  24. - friend bool ReadGPR_OLD(project &, istream &, bool, bool = false); ///< this is for the very old version.
  25. - friend bool ReadGPR_v100(project &, istream &, bool, bool = false); ///< this is for the version 1.00.
  26. - friend bool ReadGPR_v110(project &, istream &, bool, bool = false); ///< this is for the version 1.10.
  27. + friend bool ReadGPR_OLD(project &, istream &, bool, bool); ///< this is for the very old version.
  28. + friend bool ReadGPR_v100(project &, istream &, bool, bool); ///< this is for the version 1.00.
  29. + friend bool ReadGPR_v110(project &, istream &, bool, bool); ///< this is for the version 1.10.
  30. /// This is an input function for the v1.11 ghemical file format.
  31. - friend bool ReadGPR(project &, istream &, bool, bool = false);
  32. + friend bool ReadGPR(project &, istream &, bool, bool);
  33. friend void WriteGPR_v100(project &, ostream &); ///< this is for the version 1.00.
  34. /// This is an output function for the v1.11 ghemical file format.