[Bf-blender-cvs] [ebcf004ecfa] master: Cleanup: quiet missing-variable-declarations warning

Campbell Barton noreply at git.blender.org
Tue Sep 13 02:43:08 CEST 2022


Commit: ebcf004ecfa659b27a4f63260ead10495985374b
Author: Campbell Barton
Date:   Tue Sep 13 10:35:01 2022 +1000
Branches: master
https://developer.blender.org/rBebcf004ecfa659b27a4f63260ead10495985374b

Cleanup: quiet missing-variable-declarations warning

===================================================================

M	intern/libc_compat/libc_compat.c

===================================================================

diff --git a/intern/libc_compat/libc_compat.c b/intern/libc_compat/libc_compat.c
index 626490aa8e2..97e3f518c58 100644
--- a/intern/libc_compat/libc_compat.c
+++ b/intern/libc_compat/libc_compat.c
@@ -118,6 +118,11 @@ float __powf_finite(float x, float y)
 
 #    if __GLIBC_PREREQ(2, 34)
 
+extern void *(*__malloc_hook)(size_t __size, const void *);
+extern void *(*__realloc_hook)(void *__ptr, size_t __size, const void *);
+extern void *(*__memalign_hook)(size_t __alignment, size_t __size, const void *);
+extern void (*__free_hook)(void *__ptr, const void *);
+
 void *(*__malloc_hook)(size_t __size, const void *) = NULL;
 void *(*__realloc_hook)(void *__ptr, size_t __size, const void *) = NULL;
 void *(*__memalign_hook)(size_t __alignment, size_t __size, const void *) = NULL;



More information about the Bf-blender-cvs mailing list