From 21a7eabe11e962813ec518c88fea4f927b639974 Mon Sep 17 00:00:00 2001 From: bumbread Date: Thu, 4 Aug 2022 16:41:09 +1100 Subject: [PATCH] move stuff from stddef --- inc/stdlib.h | 14 +++++++++----- inc/types/{size.c => size.h} | 0 2 files changed, 9 insertions(+), 5 deletions(-) rename inc/types/{size.c => size.h} (100%) diff --git a/inc/stdlib.h b/inc/stdlib.h index d702748..3372ab4 100644 --- a/inc/stdlib.h +++ b/inc/stdlib.h @@ -1,15 +1,19 @@ #pragma once -// Defines NULL -#include #if !defined(__STDC_LIB_EXT1__) -#define __STDC_LIB_EXT1__ + #define __STDC_LIB_EXT1__ #endif #ifdef __STDC_WANT_SECURE_LIB__ -#if !defined(__STDC_WANT_LIB_EXT1__) -#define __STDC_WANT_LIB_EXT1__ 1 + #if !defined(__STDC_WANT_LIB_EXT1__) + #define __STDC_WANT_LIB_EXT1__ 1 + #endif #endif + +#include + +#if !defined(NULL) + #define NULL ((void *)0) #endif #define EXIT_SUCCESS 0 diff --git a/inc/types/size.c b/inc/types/size.h similarity index 100% rename from inc/types/size.c rename to inc/types/size.h