_native_headers.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. *
  3. * Copyright (c) 2006
  4. * Francois Dumont
  5. *
  6. * This material is provided "as is", with absolutely no warranty expressed
  7. * or implied. Any use is at your own risk.
  8. *
  9. * Permission to use or copy this software for any purpose is hereby granted
  10. * without fee, provided the above notices are retained on all copies.
  11. * Permission to modify the code and to distribute modified code is granted,
  12. * provided the above notices are retained, and a notice that the code was
  13. * modified is included with the above copyright notice.
  14. *
  15. */
  16. #if !defined (_STLP_MAKE_HEADER)
  17. # define _STLP_MAKE_HEADER(path, header) <path/header>
  18. #endif
  19. #if !defined (_STLP_NATIVE_HEADER)
  20. # if !defined (_STLP_NATIVE_INCLUDE_PATH)
  21. # define _STLP_NATIVE_INCLUDE_PATH ../include
  22. # endif
  23. # define _STLP_NATIVE_HEADER(header) _STLP_MAKE_HEADER(_STLP_NATIVE_INCLUDE_PATH,header)
  24. #endif
  25. /* For some compilers, C headers like <stdio.h> are located in separate directory */
  26. #if !defined (_STLP_NATIVE_C_HEADER)
  27. # if !defined (_STLP_NATIVE_C_INCLUDE_PATH)
  28. # define _STLP_NATIVE_C_INCLUDE_PATH _STLP_NATIVE_INCLUDE_PATH
  29. # endif
  30. # define _STLP_NATIVE_C_HEADER(header) _STLP_MAKE_HEADER(_STLP_NATIVE_C_INCLUDE_PATH,header)
  31. #endif
  32. /* For some compilers, C-library headers like <cstdio> are located in separate directory */
  33. #if !defined (_STLP_NATIVE_CPP_C_HEADER)
  34. # if !defined (_STLP_NATIVE_CPP_C_INCLUDE_PATH)
  35. # define _STLP_NATIVE_CPP_C_INCLUDE_PATH _STLP_NATIVE_INCLUDE_PATH
  36. # endif
  37. # define _STLP_NATIVE_CPP_C_HEADER(header) _STLP_MAKE_HEADER(_STLP_NATIVE_CPP_C_INCLUDE_PATH,header)
  38. #endif
  39. /* Some compilers locate basic C++ runtime support headers (<new>, <typeinfo>, <exception>) in separate directory */
  40. #if !defined ( _STLP_NATIVE_CPP_RUNTIME_HEADER )
  41. # if !defined (_STLP_NATIVE_CPP_RUNTIME_INCLUDE_PATH)
  42. # define _STLP_NATIVE_CPP_RUNTIME_INCLUDE_PATH _STLP_NATIVE_INCLUDE_PATH
  43. # endif
  44. # define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) _STLP_MAKE_HEADER(_STLP_NATIVE_CPP_RUNTIME_INCLUDE_PATH,header)
  45. #endif