# HG changeset patch # User nemo # Date 1539623309 14400 # Node ID 7173b702e8db2f1f403e81f74c6531e24dd43cf0 # Parent 085ed3ff063701c7431decbf4009d70d7584002b tag both as overloadable - seems to satisfy clang 3.4 diff -r 085ed3ff0637 -r 7173b702e8db project_files/hwc/rtl/system.c --- a/project_files/hwc/rtl/system.c Mon Oct 15 19:43:30 2018 +0300 +++ b/project_files/hwc/rtl/system.c Mon Oct 15 13:08:29 2018 -0400 @@ -74,7 +74,7 @@ return result; } -void fpcrtl_insert__vars(string255 *src, string255 *dst, SizeInt index) { +void __attribute__((overloadable)) fpcrtl_insert__vars(string255 *src, string255 *dst, SizeInt index) { int num_insert; int num_shift; int num_preshift; diff -r 085ed3ff0637 -r 7173b702e8db project_files/hwc/rtl/system.h --- a/project_files/hwc/rtl/system.h Mon Oct 15 19:43:30 2018 +0300 +++ b/project_files/hwc/rtl/system.h Mon Oct 15 13:08:29 2018 -0400 @@ -28,7 +28,7 @@ /* * Insert a shortstring in another at a specified index */ -void fpcrtl_insert__vars(string255 *src, string255 *dst, SizeInt index); +void __attribute__((overloadable)) fpcrtl_insert__vars(string255 *src, string255 *dst, SizeInt index); void __attribute__((overloadable)) fpcrtl_insert__vars(astring *src, astring *dst, SizeInt index); #define fpcrtl_insert(src, dst, index) fpcrtl_insert__vars(&(src), &(dst), index);