Remove true/false/bool since it is a compuler keyword in c23
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#include "alloc.h"
|
||||
#include <assert.h>
|
||||
|
||||
typedef struct block_header
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "def.h"
|
||||
|
||||
void* malloc(size_t size);
|
||||
void free(void* ptr);
|
||||
@@ -7,12 +7,6 @@ typedef __builtin_va_list va_list;
|
||||
#define va_end(ap) __builtin_va_end(ap)
|
||||
#define va_copy(dest, src) __builtin_va_copy(dest, src)
|
||||
|
||||
#define bool _Bool
|
||||
#define true 1
|
||||
#define false 0
|
||||
|
||||
#define __bool_true_false_are_defined 1
|
||||
|
||||
#ifndef NULL
|
||||
#define NULL ((void*)0)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user