make definition for NULL generic

Make the definition for NULL generic, so it can be used in constants
that are shared by C and assembly code.

Signed-off-by: Axel Heider <axelheider@gmx.de>
This commit is contained in:
Axel Heider
2021-07-17 16:48:11 +02:00
committed by Gerwin Klein
parent fec1b90ef8
commit e20652f664

View File

@@ -21,6 +21,7 @@
*/
#define UL_CONST(x) x
#define ULL_CONST(x) x
#define NULL 0
#else /* not __ASSEMBLER__ */
@@ -31,6 +32,7 @@
*/
#define UL_CONST(x) PASTE(x, ul)
#define ULL_CONST(x) PASTE(x, llu)
#define NULL ((void *)0)
#endif /* [not] __ASSEMBLER__ */
@@ -67,8 +69,6 @@
#ifndef __ASSEMBLER__
#define NULL ((void *)0)
#define PACKED __attribute__((packed))
#define NORETURN __attribute__((__noreturn__))
#define CONST __attribute__((__const__))