kwsysPrivate.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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
  14. # error "Do not include kwsysPrivate.h outside of kwsys c and cxx files."
  15. #endif
  16. #ifndef _kwsysPrivate_h
  17. #define _kwsysPrivate_h
  18. /*
  19. Define KWSYS_HEADER macro to help the c and cxx files include kwsys
  20. headers from the configured namespace directory. The macro can be
  21. used like this:
  22. #include KWSYS_HEADER(Directory.hxx)
  23. #include KWSYS_HEADER(std/vector)
  24. */
  25. #define KWSYS_HEADER(x) KWSYS_HEADER0(KWSYS_NAMESPACE/x)
  26. #define KWSYS_HEADER0(x) KWSYS_HEADER1(x)
  27. #define KWSYS_HEADER1(x) <x>
  28. #else
  29. # error "kwsysPrivate.h included multiple times."
  30. #endif