Fix compilation on OpenBSD

This commit is contained in:
Cacodemon345 2021-05-10 01:39:33 +06:00 committed by Christoph Oelckers
parent ce4b748ff0
commit 36b910a253
2 changed files with 2 additions and 1 deletions

View file

@ -52,7 +52,7 @@
////////// Platform headers ////////// ////////// Platform headers //////////
#if !defined __APPLE__ && (!defined EDUKE32_BSD || !__STDC__) #if !defined __APPLE__ && (!defined EDUKE32_BSD || !__STDC__) && !defined __OpenBSD__ && !defined __DragonFly__
# include <malloc.h> # include <malloc.h>
#endif #endif

View file

@ -1,4 +1,5 @@
#pragma once #pragma once
#include <stdarg.h>
#if defined __GNUC__ || defined __clang__ #if defined __GNUC__ || defined __clang__
# define ATTRIBUTE(attrlist) __attribute__(attrlist) # define ATTRIBUTE(attrlist) __attribute__(attrlist)