diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-05-14 18:01:53 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-05-14 18:01:53 -0300 |
commit | f93051155c4a5e7b56f892c2b9222f38b40d3e81 (patch) | |
tree | 9e5a5747035de1d22cd7b1e6074a7b7720ecba00 /liolib.c | |
parent | 524ae9fc3dd8acc69d587c3ed0599d8c95205381 (diff) | |
download | lua-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.c | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -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 | ||