adventuregamestudio / ags

AGS editor and engine source code
Other
708 stars 159 forks source link

(2) Hotfix function pointer assignment in String_Replace independent of libc #2400

Closed ivan-mogilko closed 7 months ago

ivan-mogilko commented 7 months ago

Another attempt on this... Trying to make it work across different implementations of libc, including ones with non-standard overloads.

Declare a C standard compatible variant of strstr in our string_compat file, and assign that to a pointer instead.