]> granicus.if.org Git - flex/commitdiff
Prototyped reallocarray implementation
authorWill Estes <westes575@gmail.com>
Sun, 28 Feb 2016 21:23:19 +0000 (16:23 -0500)
committerWill Estes <westes575@gmail.com>
Sun, 28 Feb 2016 21:23:19 +0000 (16:23 -0500)
lib/reallocarray.c

index 11d1e7b7d5e29f8e144032fca1f6af6af321fbe6..0c1e25067f7d3170f74e174895e6737acffd7046 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <config.h>
 #ifndef HAVE_REALLOCARRAY
+#undef reallocarray
 
 #include <sys/types.h>
 #include <errno.h>
@@ -27,6 +28,8 @@
 #endif
 #include <stdlib.h>
 
+void *reallocarray(void *, size_t, size_t);
+
 /*
  * This is sqrt(SIZE_MAX+1), as s1*s2 <= SIZE_MAX
  * if both s1 < MUL_NO_OVERFLOW and s2 < MUL_NO_OVERFLOW