From 05fa5124c24a00efb2dc0b760fbf3edc4f3f060a Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 22 Oct 2021 21:02:47 -0700 Subject: drop lua_stdin_is_tty luaconf.h now no longer refers to stdin/stdout/stderr. --- src/luaconf.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src') diff --git a/src/luaconf.h b/src/luaconf.h index ebf6682..bebefc4 100644 --- a/src/luaconf.h +++ b/src/luaconf.h @@ -218,23 +218,6 @@ #if defined(lua_c) || defined(luaall_c) -/* -@@ lua_stdin_is_tty detects whether the standard input is a 'tty' (that -@* is, whether we're running lua interactively). -** CHANGE it if you have a better definition for non-POSIX/non-Windows -** systems. -*/ -#if defined(LUA_USE_ISATTY) -#include -#define lua_stdin_is_tty() isatty(0) -#elif defined(LUA_WIN) -#include -#include -#define lua_stdin_is_tty() _isatty(_fileno(stdin)) -#else -#define lua_stdin_is_tty() 1 /* assume stdin is a tty */ -#endif - /* @@ LUA_PROMPT is the default prompt used by stand-alone Lua. -- cgit 1.4.1-2-gfad0