diff options
author | Rob Hoelz <rob@hoelz.ro> | 2016-03-15 20:30:38 -0500 |
---|---|---|
committer | Rob Hoelz <rob@hoelz.ro> | 2016-03-15 20:30:38 -0500 |
commit | 08a450b70ac58f688580dde1c152289884371e7c (patch) | |
tree | d3c38888eb3cc6de93235cc84b0852d54e39e47b | |
parent | e075f7efc768439e9d6ec2d1cb56168c8260b3f3 (diff) | |
download | lua-term-08a450b70ac58f688580dde1c152289884371e7c.tar.gz lua-term-08a450b70ac58f688580dde1c152289884371e7c.tar.bz2 lua-term-08a450b70ac58f688580dde1c152289884371e7c.zip |
Don't require unistd for MS C++
Addresses https://github.com/hoelzro/lua-term/issues/15
This can still work with MinGW if we don't include unistd.h
-rw-r--r-- | core.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,7 +1,9 @@ | |||
1 | #include <lua.h> | 1 | #include <lua.h> |
2 | #include <lauxlib.h> | 2 | #include <lauxlib.h> |
3 | #include <lualib.h> | 3 | #include <lualib.h> |
4 | #include <unistd.h> | 4 | #ifndef _MSC_VER |
5 | # include <unistd.h> | ||
6 | #endif | ||
5 | 7 | ||
6 | static int | 8 | static int |
7 | lua_isatty(lua_State *L) | 9 | lua_isatty(lua_State *L) |