new scheme for configuration through `luaconf.h'

This commit is contained in:
Roberto Ierusalimschy
2004-04-30 17:13:38 -03:00
parent 079facab40
commit b4cd38ba6c
34 changed files with 176 additions and 395 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: liolib.c,v 2.48 2003/10/10 12:57:55 roberto Exp roberto $
** $Id: liolib.c,v 2.49 2003/10/10 13:29:28 roberto Exp roberto $
** Standard I/O (and system) library
** See Copyright Notice in lua.h
*/
@@ -13,6 +13,7 @@
#include <time.h>
#define liolib_c
#define LUA_LIB
#include "lua.h"
@@ -21,31 +22,6 @@
/*
** by default, gcc does not get `tmpname'
*/
#ifndef USE_TMPNAME
#ifdef __GNUC__
#define USE_TMPNAME 0
#else
#define USE_TMPNAME 1
#endif
#endif
/*
** by default, posix systems get `popen'
*/
#ifndef USE_POPEN
#if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 2
#define USE_POPEN 1
#else
#define USE_POPEN 0
#endif
#endif
/*
** {======================================================