Merge pull request #552 from stinos/mingw-alloca

py: Use <alloca.h> for alloca()
pull/554/head
Paul Sokolovsky 2014-05-03 14:39:47 +03:00
commit 7a14022604
3 zmienionych plików z 3 dodań i 10 usunięć

Wyświetl plik

@ -1,12 +1,8 @@
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#ifdef __MINGW32__
// For alloca()
#include <malloc.h>
#endif
#include <alloca.h>
#include "mpconfig.h"
#include "nlr.h"

Wyświetl plik

@ -1,11 +1,7 @@
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#ifdef __MINGW32__
// For alloca()
#include <malloc.h>
#endif
#include <alloca.h>
#include "mpconfig.h"
#include "nlr.h"

1
windows/alloca.h 100644
Wyświetl plik

@ -0,0 +1 @@
#include <malloc.h>