mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-15 12:34:30 +00:00
fix OpenBSD compile issue
Linux seems the only system AFAICS to have alloca.h. All the BSDs have the declaration in stdlib.h
This commit is contained in:
parent
46c3fc1f94
commit
53074d250f
4 changed files with 12 additions and 12 deletions
|
@ -22,10 +22,10 @@
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__linux__)
|
||||||
#include <stdlib.h>
|
|
||||||
#else
|
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
|
#else
|
||||||
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "tvgMath.h"
|
#include "tvgMath.h"
|
||||||
|
|
|
@ -26,10 +26,10 @@
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__linux__)
|
||||||
#include <stdlib.h>
|
|
||||||
#else
|
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
|
#else
|
||||||
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "tvgXmlParser.h"
|
#include "tvgXmlParser.h"
|
||||||
|
|
|
@ -23,10 +23,10 @@
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__linux__)
|
||||||
#include <stdlib.h>
|
|
||||||
#else
|
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
|
#else
|
||||||
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "tvgTvgCommon.h"
|
#include "tvgTvgCommon.h"
|
||||||
|
|
|
@ -28,10 +28,10 @@
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__linux__)
|
||||||
#include <stdlib.h>
|
|
||||||
#else
|
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
|
#else
|
||||||
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static FILE* _fopen(const char* filename, const char* mode)
|
static FILE* _fopen(const char* filename, const char* mode)
|
||||||
|
|
Loading…
Add table
Reference in a new issue