DanBloomberg / leptonica

Leptonica is an open source library containing software that is broadly useful for image processing and image analysis applications. The official github repository for Leptonica is: danbloomberg/leptonica. See leptonica.org for more documentation.
Other
1.76k stars 387 forks source link

Outdated comments about fmemopen() and open_memstream() #641

Closed amitdo closed 1 year ago

amitdo commented 1 year ago

fmemopen() and open_memstream() are supported on macOS (>10.12) and the BSDs.

https://github.com/DanBloomberg/leptonica/blob/21c6562346b449f9247d073203ff92bf476f9227/src/makefile.static#L48-L52

https://github.com/DanBloomberg/leptonica/blob/edcf1abe62bc7c0250f426e9beb936e261160aca/src/environ.h#L176-L183

DanBloomberg commented 1 year ago

Thanks Amit -- I'll fix this on Tuesday.

stweil commented 1 year ago

According to the documentation on MacOS, both functions conform to IEEE Std 1003.1-2008 (“POSIX.1”). So any OS which supports POSIX.1-2008 should provide them. The Linux documentation says that they were not specified in POSIX.1-2001.

DanBloomberg commented 1 year ago

Fixed. Thank you for clarifying the use of these functions.