You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As stb_image is quite a popular library, it is quite possible that STB_IMAGE_IMPLEMENTATION and/or STB_IMAGE_WRITE_IMPLEMENTATION macros will already have been set elsewhere, which leads to multiply defined symbols and possibly linker errors.
It would be quite straightforward to modifiy plutovg_surface.c to avoid this, something along the lines of this:
As stb_image is quite a popular library, it is quite possible that
STB_IMAGE_IMPLEMENTATION
and/orSTB_IMAGE_WRITE_IMPLEMENTATION
macros will already have been set elsewhere, which leads to multiply defined symbols and possibly linker errors.It would be quite straightforward to modifiy
plutovg_surface.c
to avoid this, something along the lines of this:This way we can control wether only stb function prototypes get defined or not and no other part of plutovg is changed.
The text was updated successfully, but these errors were encountered: