libc.wrapper.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * This file is part of Jehanne.
  3. *
  4. * Copyright (C) 2016 Giacomo Tesio <giacomo@tesio.it>
  5. *
  6. * Jehanne is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, version 2 of the License.
  9. *
  10. * Jehanne is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with Jehanne. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /* This wrapper protect Jehanne default headers from multiple
  19. * inclusions in POSIX source code.
  20. *
  21. * As far as u.h and libc.h are not standard headers in POSIX, a simple
  22. * guarded inclusion will go to the appropriate folders /arch/amd64/include
  23. * and /sys/include
  24. */
  25. #ifndef _JEHANNE_LIBC_WRAPPER
  26. #define _JEHANNE_LIBC_WRAPPER
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30. #include <u.h>
  31. #include "../libc.h"
  32. #undef JEHANNE_LIBC
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #endif