aboutsummaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-04-30 17:13:38 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-04-30 17:13:38 -0300
commitb4cd38ba6c148cf7db5deae6208b660c3417cac9 (patch)
tree8818b5e364c8ad5489a9755d3fc24110bccfdfe2 /liolib.c
parent079facab40542ff2e6be9ecc254fd148772b47c9 (diff)
downloadlua-b4cd38ba6c148cf7db5deae6208b660c3417cac9.tar.gz
lua-b4cd38ba6c148cf7db5deae6208b660c3417cac9.tar.bz2
lua-b4cd38ba6c148cf7db5deae6208b660c3417cac9.zip
new scheme for configuration through `luaconf.h'
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c28
1 files changed, 2 insertions, 26 deletions
diff --git a/liolib.c b/liolib.c
index a2e22c4d..11ddf8f4 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 2.48 2003/10/10 12:57:55 roberto Exp roberto $ 2** $Id: liolib.c,v 2.49 2003/10/10 13:29:28 roberto Exp roberto $
3** Standard I/O (and system) library 3** Standard I/O (and system) library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -13,6 +13,7 @@
13#include <time.h> 13#include <time.h>
14 14
15#define liolib_c 15#define liolib_c
16#define LUA_LIB
16 17
17#include "lua.h" 18#include "lua.h"
18 19
@@ -21,31 +22,6 @@
21 22
22 23
23 24
24/*
25** by default, gcc does not get `tmpname'
26*/
27#ifndef USE_TMPNAME
28#ifdef __GNUC__
29#define USE_TMPNAME 0
30#else
31#define USE_TMPNAME 1
32#endif
33#endif
34
35
36/*
37** by default, posix systems get `popen'
38*/
39#ifndef USE_POPEN
40#if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 2
41#define USE_POPEN 1
42#else
43#define USE_POPEN 0
44#endif
45#endif
46
47
48
49 25
50/* 26/*
51** {====================================================== 27** {======================================================