Skip to content

Commit

Permalink
Win32: Fix for compiling with MinGW.org GCC-6.3.0-1
Browse files Browse the repository at this point in the history
MinGW-w64 MinGW-Builds 13.1.0 on the other hand does not need this.
  • Loading branch information
ruevs committed Sep 29, 2023
1 parent f399997 commit 9edf2bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/platform/platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,12 @@ std::vector<std::string> InitCli(int argc, char **argv) {

#if defined(WIN32)

#if !defined(_alloca)
// Fix for compiling with MinGW.org GCC-6.3.0-1
#define _alloca alloca
#include <malloc.h>
#endif

void DebugPrint(const char *fmt, ...)
{
va_list va;
Expand Down

0 comments on commit 9edf2bc

Please sign in to comment.