Merge pull request #216 from jg1uaa/master

add OpenBSD support, clean-up FreeBSD/APPLE #ifdef
This commit is contained in:
Ilya V. Matveychikov 2025-01-10 11:43:06 +03:00 committed by GitHub
commit a5c4ea03cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,10 +45,8 @@ extern void MemFree( void *ptr );
#elif defined(__GNUC__) || defined(__TINYC__) #elif defined(__GNUC__) || defined(__TINYC__)
#define myalloca alloca #define myalloca alloca
#ifndef __FreeBSD__ /* added v2.08 */ #if !(defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__))
#ifndef __APPLE__ #include <malloc.h>
#include <malloc.h> /* added v2.07 */
#endif
#endif #endif
#elif defined(__PCC__) #elif defined(__PCC__)