stddef.h 355 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #ifndef KERNEL
  8. # include <sys/cdefs.h>
  9. # ifdef __cplusplus
  10. # define NULL nullptr
  11. # else
  12. # define NULL ((void*)0)
  13. # endif
  14. typedef __PTRDIFF_TYPE__ ptrdiff_t;
  15. typedef __SIZE_TYPE__ size_t;
  16. #endif