lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I've updated the luaconf.h file so Lua can be compiled using the C++Builder compiler provided by CodeGear.  I would like to update the makefile but my knowledge of using make is so what limited at this time.  I have installed Cygwin on my computer so I should have many of the *nix tools that are required.  Is there a policy for submitting patches?  I wouldn't expect all submissions to be applied to the main source tree.  For example, if I were to update the makefile and send the patch to this list would that be a waste of time?

The compiler/linker from CodeGear can create programs that don't require any additional DLLs to run.  I was surprised to find out today the Win32 build of Lua requires some Microsoft runtime DLL to be able to run.

Free C++ Compiler 5.5:  http://cc.codegear.com/Free.aspx?id=24778

luaconf.h:
@@ -227,6 +227,10 @@
 #if defined(LUA_USE_ISATTY)
 #include <unistd.h>
 #define lua_stdin_is_tty()     isatty(0)
+#elif defined(LUA_WIN) && defined(__BORLANDC__)
+#include <io.h>
+#include <stdio.h>
+#define lua_stdin_is_tty()     isatty(_fileno(stdin))
 #elif defined(LUA_WIN)
 #include <io.h>
 #include <stdio.h>

CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is confidential or proprietary to K&L Microwave, Inc. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, immediately contact the sender by reply e-mail and destroy all copies of the original message.