aboutsummaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-05-14 18:01:53 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-05-14 18:01:53 -0300
commitf93051155c4a5e7b56f892c2b9222f38b40d3e81 (patch)
tree9e5a5747035de1d22cd7b1e6074a7b7720ecba00 /liolib.c
parent524ae9fc3dd8acc69d587c3ed0599d8c95205381 (diff)
downloadlua-f93051155c4a5e7b56f892c2b9222f38b40d3e81.tar.gz
lua-f93051155c4a5e7b56f892c2b9222f38b40d3e81.tar.bz2
lua-f93051155c4a5e7b56f892c2b9222f38b40d3e81.zip
ok to use `#elif' and `#if defined()'
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/liolib.c b/liolib.c
index 02786883..4e9ddb7e 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 2.41 2003/04/30 20:24:38 roberto Exp roberto $ 2** $Id: liolib.c,v 2.42 2003/05/14 19:03:43 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*/
@@ -37,16 +37,12 @@
37** by default, posix systems get `popen' 37** by default, posix systems get `popen'
38*/ 38*/
39#ifndef USE_POPEN 39#ifndef USE_POPEN
40#ifdef _POSIX_C_SOURCE 40#if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 2
41#if _POSIX_C_SOURCE >= 2
42#define USE_POPEN 1 41#define USE_POPEN 1
43#endif 42#else
44#endif
45#endif
46
47#ifndef USE_POPEN
48#define USE_POPEN 0 43#define USE_POPEN 0
49#endif 44#endif
45#endif
50 46
51 47
52 48