From f93051155c4a5e7b56f892c2b9222f38b40d3e81 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 14 May 2003 18:01:53 -0300 Subject: ok to use `#elif' and `#if defined()' --- liolib.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'liolib.c') diff --git a/liolib.c b/liolib.c index 02786883..4e9ddb7e 100644 --- a/liolib.c +++ b/liolib.c @@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 2.41 2003/04/30 20:24:38 roberto Exp roberto $ +** $Id: liolib.c,v 2.42 2003/05/14 19:03:43 roberto Exp roberto $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -37,16 +37,12 @@ ** by default, posix systems get `popen' */ #ifndef USE_POPEN -#ifdef _POSIX_C_SOURCE -#if _POSIX_C_SOURCE >= 2 +#if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 2 #define USE_POPEN 1 -#endif -#endif -#endif - -#ifndef USE_POPEN +#else #define USE_POPEN 0 #endif +#endif -- cgit v1.2.3-55-g6feb