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,6 +1,4 @@
#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__
@ -12,6 +10,12 @@
#endif #endif
#endif #endif
#include <types/size.h>
#if !defined(NULL)
#define NULL ((void *)0)
#endif
#define EXIT_SUCCESS 0 #define EXIT_SUCCESS 0
#define EXIT_FAILURE 1 #define EXIT_FAILURE 1