Skip to content

Commit

Permalink
Build fix for alloca on *BSD
Browse files Browse the repository at this point in the history
  • Loading branch information
brad0 authored and icculus committed Sep 15, 2022
1 parent a2c9f4c commit 12a2089
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions mojoshader_internal.h
Expand Up @@ -16,7 +16,10 @@

/* FIXME: These includes are needed for alloca :( */
#include <stdlib.h>
#ifndef __APPLE__
#if defined(__linux__) || defined(__sun)
#include <alloca.h>
#endif
#ifdef _MSC_VER
#include <malloc.h>
#endif

Expand Down Expand Up @@ -259,10 +262,6 @@ typedef int32_t int32;
typedef int64_t int64;
typedef uint64_t uint64;
#endif

#ifdef sun
#include <alloca.h>
#endif
#endif /* MOJOSHADER_USE_SDL_STDLIB */

#ifdef __GNUC__
Expand Down

0 comments on commit 12a2089

Please sign in to comment.