Skip to content

Commit 617205c

Browse files
committed
Did these following things...
- Removed the need for header files being included from specific dirs - Removed the need to differentiate between linux and unix in general
1 parent d22bb69 commit 617205c

2 files changed

Lines changed: 5 additions & 33 deletions

File tree

src/jitsupport.c

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -22,35 +22,7 @@
2222
*/
2323

2424
#if defined(LUA_JIT_51)
25-
# include "luajit-2.0/lua.h"
26-
# include "luajit-2.0/lualib.h"
27-
# include "luajit-2.0/lauxlib.h"
28-
# include "luajit-2.0/luajit.h"
29-
30-
31-
// standard libraries per OS
32-
# if defined(linux) || defined(__linux__) || defined(__linux)
33-
# include <unistd.h>
34-
# include <stdio.h>
35-
# include <stdlib.h>
36-
# elif defined(unix) || defined(__unix__) || defined(__unix)
37-
# include <unistd.h>
38-
# include <stdio.h>
39-
# include <stdlib.h>
40-
# elif defined(__APPLE__) || defined(__MACH__)
41-
# include <unistd.h>
42-
# include <stdio.h>
43-
# include <stdlib.h>
44-
# elif defined(_WIN32) || defined(_WIN64)
45-
# include <windows.h>
46-
# include <stdio.h>
47-
# include <stdlib.h>
48-
# else
49-
# error "OS not familiar. Set up headers accordingly, or -D__linux__ of -Dunix or -D__APPLE__ or -D_WIN32"
50-
# endif
51-
52-
53-
# include "darr.h"
25+
# include "jitsupport.h"
5426

5527

5628
// LuaJIT functions slightly modified for LuaConsole

src/jitsupport.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
#pragma once
2525

2626
#if defined(LUA_JIT_51)
27-
# include "luajit-2.0/lua.h"
28-
# include "luajit-2.0/lualib.h"
29-
# include "luajit-2.0/lauxlib.h"
30-
# include "luajit-2.0/luajit.h"
27+
# include "lua.h"
28+
# include "lualib.h"
29+
# include "lauxlib.h"
30+
# include "luajit.h"
3131

3232
# include "darr.h"
3333

0 commit comments

Comments
 (0)