move stuff from stddef

This commit is contained in:
bumbread 2022-08-04 16:41:09 +11:00
parent f439b768b1
commit 21a7eabe11
2 changed files with 9 additions and 5 deletions

View File

@ -1,15 +1,19 @@
#pragma once #pragma once
// Defines NULL
#include <stddef.h>
#if !defined(__STDC_LIB_EXT1__) #if !defined(__STDC_LIB_EXT1__)
#define __STDC_LIB_EXT1__ #define __STDC_LIB_EXT1__
#endif #endif
#ifdef __STDC_WANT_SECURE_LIB__ #ifdef __STDC_WANT_SECURE_LIB__
#if !defined(__STDC_WANT_LIB_EXT1__) #if !defined(__STDC_WANT_LIB_EXT1__)
#define __STDC_WANT_LIB_EXT1__ 1 #define __STDC_WANT_LIB_EXT1__ 1
#endif
#endif #endif
#include <types/size.h>
#if !defined(NULL)
#define NULL ((void *)0)
#endif #endif
#define EXIT_SUCCESS 0 #define EXIT_SUCCESS 0