$OpenBSD: patch-examples_ThirdPartyLibs_Gwen_Macros_h,v 1.1 2015/12/25 15:30:05 pascal Exp $
--- examples/ThirdPartyLibs/Gwen/Macros.h.orig	Fri Dec 25 16:08:29 2015
+++ examples/ThirdPartyLibs/Gwen/Macros.h	Fri Dec 25 16:09:02 2015
@@ -4,7 +4,7 @@
 #define GWEN_MACROS_H
 #include <stdlib.h>
 #include <stdarg.h>
-#ifndef __APPLE__
+#if !defined(__APPLE__) && !defined(__OpenBSD__)
 #include <malloc.h>
 #endif //__APPLE__
 #include <memory.h>
@@ -38,7 +38,7 @@
 	#define GwenUtil_OutputDebugWideString( lpOutputString ) //wprintf( lpOutputString  )
 	#define GwenUtil_WideStringToFloat( _Str ) wcstof(_Str, NULL)
 
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__OpenBSD__)
 
 	#define GwenUtil_VSNPrintFSafe( _DstBuf, _DstSize, _MaxCount, _Format, _ArgList ) vsnprintf( _DstBuf, _DstSize, _Format, _ArgList )
 	#define GwenUtil_VSWPrintFSafe( _DstBuf, _SizeInWords, _Format, _ArgList ) vswprintf( _DstBuf, _SizeInWords, _Format, _ArgList )
