mirror of https://github.com/rusefi/lua.git
details for OLD_ANSI
This commit is contained in:
parent
2628a42480
commit
f45cba42b5
4
liolib.c
4
liolib.c
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: liolib.c,v 1.81 2000/09/12 13:58:37 roberto Exp roberto $
|
** $Id: liolib.c,v 1.82 2000/09/12 18:41:55 roberto Exp roberto $
|
||||||
** Standard I/O (and system) library
|
** Standard I/O (and system) library
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -21,6 +21,8 @@
|
||||||
#ifndef OLD_ANSI
|
#ifndef OLD_ANSI
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
|
#define realloc(b,s) ((b) == NULL ? malloc(s) : (realloc)(b, s))
|
||||||
|
#define free(b) if (b) (free)(b)
|
||||||
#else
|
#else
|
||||||
/* no support for locale and for strerror: fake them */
|
/* no support for locale and for strerror: fake them */
|
||||||
#define setlocale(a,b) ((void)a, strcmp((b),"C")==0?"C":NULL)
|
#define setlocale(a,b) ((void)a, strcmp((b),"C")==0?"C":NULL)
|
||||||
|
|
Loading…
Reference in New Issue