wfc icon indicating copy to clipboard operation
wfc copied to clipboard

wfc.h as an include

Open nsmryan opened this issue 9 months ago • 0 comments

I've noticed that if I have wfc.h's implementation in one file, and want to use as a header in another, there are a number of functions without prototypes.

For example, I modified the header to declare some prototypes:

int wfc_export(struct wfc *wfc, const char *filename);
void wfc_destroy(struct wfc *wfc);
struct wfc_image *wfc_output_image(struct wfc *wfc);
void wfc_img_destroy(struct wfc_image *image);

I might be able to come up with a PR for this if you would accept it. I would include wrapping in WFC_USE_STB for functions not present without that flag.

nsmryan avatar Sep 18 '23 01:09 nsmryan