cdefs.h 429 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #define _POSIX_VERSION 200809L
  8. #ifdef __cplusplus
  9. # ifndef __BEGIN_DECLS
  10. # define __BEGIN_DECLS extern "C" {
  11. # define __END_DECLS }
  12. # endif
  13. #else
  14. # ifndef __BEGIN_DECLS
  15. # define __BEGIN_DECLS
  16. # define __END_DECLS
  17. # endif
  18. #endif
  19. #undef __P
  20. #define __P(a) a