linux4sam / egt

Ensemble Graphics Toolkit - Modern C++ GUI Toolkit for AT91/SAMA5 Microprocessors
https://ensemble.graphics
Apache License 2.0
63 stars 25 forks source link

check for reallocarray before using it #2

Closed kraj closed 4 years ago

kraj commented 4 years ago

in kplot there is a runtime check for reallocarray which actually wont work in cross compile mode, luckily it does check for HAVE_REALLOCARRAY before usng the results of runtime check. So here add a configure time check for presense of reallocarray

Fixes

TOPDIR/build/tmp/work/core2-32-yoe-linux/libegt/0.8-r0/recipe-sysroot/usr/include/stdlib.h:559:14: error: exception specification in declaration does not match previous declaration extern void reallocarray (void ptr, size_t __nmemb, size_t size) ^ ../external/kplot/compat.h:24:7: note: previous declaration is here void reallocarray(void optr, size_t nmemb, size_t size); ^

Upstream-Status: Pending Signed-off-by: Khem Raj raj.khem@gmail.com

joshua-henderson commented 4 years ago

kplot was removed from EGT as part of the move to plplot. So, this pull request is no longer valid. If you must maintain an older version of EGT with this patch, it should unfortunately be handled in the build system.