shithub: rgbds

Download patch

ref: 261503c7c82e89807e678087d0125e1cd61bd6fb
parent: c8d9ae21e6fdacdaabaa9dd59cad4e812d640298
author: Anthony J. Bentley <[email protected]>
date: Tue Feb 24 21:13:23 EST 2015

Fix the reallocarray header by providing a prototype.

--- a/include/extern/reallocarray.h
+++ b/include/extern/reallocarray.h
@@ -1,10 +1,14 @@
 #ifndef EXTERN_REALLOCARRAY_H
 #define EXTERN_REALLOCARRAY_H
 
+#ifdef REALLOCARRAY_IN_LIBC
 #include <stdlib.h>
+#else
 
-#ifndef REALLOCARRAY_IN_LIBC
 #define reallocarray rgbds_reallocarray
+
+void *reallocarray(void *, size_t, size_t);
+
 #endif
 
 #endif