I've made two minor changes to allow working on Linux.
Please review them and merge if you so consider.
I have no way to check it still works on OS X. To be strict the #ifdef __APPLE__ should have been translated to #if defined(__APPLE__) || __linux__ but most sources I've checked suggest that __APPLE__ is defined to be true, so #if __APPLE__ || __linux__ should work equally well.
I've made two minor changes to allow working on Linux.
Please review them and merge if you so consider.
I have no way to check it still works on OS X. To be strict the
#ifdef __APPLE__
should have been translated to#if defined(__APPLE__) || __linux__
but most sources I've checked suggest that__APPLE__
is defined to be true, so#if __APPLE__ || __linux__
should work equally well.Thanks,