Skip to content

Commit

Permalink
Did these following things...
Browse files Browse the repository at this point in the history
- Removed the need for header files being included from specific dirs
- Removed the need to differentiate between linux and unix in general
  • Loading branch information
tilkinsc committed Sep 2, 2018
1 parent d22bb69 commit 617205c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 33 deletions.
30 changes: 1 addition & 29 deletions src/jitsupport.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,35 +22,7 @@
*/

#if defined(LUA_JIT_51)
# include "luajit-2.0/lua.h"
# include "luajit-2.0/lualib.h"
# include "luajit-2.0/lauxlib.h"
# include "luajit-2.0/luajit.h"


// standard libraries per OS
# if defined(linux) || defined(__linux__) || defined(__linux)
# include <unistd.h>
# include <stdio.h>
# include <stdlib.h>
# elif defined(unix) || defined(__unix__) || defined(__unix)
# include <unistd.h>
# include <stdio.h>
# include <stdlib.h>
# elif defined(__APPLE__) || defined(__MACH__)
# include <unistd.h>
# include <stdio.h>
# include <stdlib.h>
# elif defined(_WIN32) || defined(_WIN64)
# include <windows.h>
# include <stdio.h>
# include <stdlib.h>
# else
# error "OS not familiar. Set up headers accordingly, or -D__linux__ of -Dunix or -D__APPLE__ or -D_WIN32"
# endif


# include "darr.h"
# include "jitsupport.h"


// LuaJIT functions slightly modified for LuaConsole
Expand Down
8 changes: 4 additions & 4 deletions src/jitsupport.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
#pragma once

#if defined(LUA_JIT_51)
# include "luajit-2.0/lua.h"
# include "luajit-2.0/lualib.h"
# include "luajit-2.0/lauxlib.h"
# include "luajit-2.0/luajit.h"
# include "lua.h"
# include "lualib.h"
# include "lauxlib.h"
# include "luajit.h"

# include "darr.h"

Expand Down

0 comments on commit 617205c

Please sign in to comment.