OpenEmu / CrabEmu-Core

OpenEmu Core plugin with CrabEmu to support ColecoVision emulation
7 stars 8 forks source link

Use Mac OS X's native fmemopen if present. #2

Closed MaddTheSane closed 6 years ago

MaddTheSane commented 6 years ago

fmemopen was added in 10.13. This uses the new __builtin_available attribute added in Xcode 9, and if it isn't there, uses the old, emulated fmemopen. This also declares our own fmemopen as a macro to prevent linking collisions.

Based off of my work on my fork of fmemopen.

clobber commented 6 years ago

Thanks!