kwsys_std_fstream.h.in 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*=========================================================================
  2. Program: KWSys - Kitware System Library
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  8. See http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #ifndef @KWSYS_NAMESPACE@_std_fstream
  14. #define @KWSYS_NAMESPACE@_std_fstream
  15. #include <@KWSYS_NAMESPACE@/Configure.hxx>
  16. #ifdef _MSC_VER
  17. #pragma warning (push, 1)
  18. #pragma warning (disable: 4702)
  19. #endif
  20. #if !defined(@KWSYS_NAMESPACE@_NO_ANSI_STREAM_HEADERS)
  21. # include <fstream>
  22. #else
  23. # include <fstream.h>
  24. # if !defined(@KWSYS_NAMESPACE@_NO_STD_NAMESPACE) && !defined(@KWSYS_NAMESPACE@_FAKE_STD_NAMESPACE)
  25. namespace std
  26. {
  27. using ::ostream;
  28. using ::istream;
  29. using ::ofstream;
  30. using ::ifstream;
  31. using ::ios;
  32. using ::endl;
  33. using ::flush;
  34. }
  35. # endif
  36. #endif
  37. #ifdef _MSC_VER
  38. #pragma warning(pop)
  39. #endif
  40. #endif