Add __attribute__((__malloc__)) declaration to internal malloc funcs.
[seabios.git] / src / types.h
index e0133589640ac2140fa0f394f9c98443aa09e818..50839418f61971d6d41196854ac8a7c649d3d2d5 100644 (file)
@@ -129,6 +129,7 @@ extern void __force_link_error__only_in_16bit(void) __noreturn;
 
 #define noinline __attribute__((noinline))
 #define __always_inline inline __attribute__((always_inline))
+#define __malloc __attribute__((__malloc__))
 #define __attribute_const __attribute__((__const__))
 
 #define __stringify_1(x)        #x