diff options
Diffstat (limited to 'src/lua5/imlua_fftw.c')
-rw-r--r-- | src/lua5/imlua_fftw.c | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/src/lua5/imlua_fftw.c b/src/lua5/imlua_fftw.c index c8ad3df..f25f9c3 100644 --- a/src/lua5/imlua_fftw.c +++ b/src/lua5/imlua_fftw.c @@ -2,7 +2,7 @@ * \brief IM Lua 5 Binding * * See Copyright Notice in im_lib.h - * $Id: imlua_fftw.c,v 1.2 2008/11/26 17:25:51 scuri Exp $ + * $Id: imlua_fftw.c,v 1.3 2010/06/07 20:59:32 scuri Exp $ */ #include <memory.h> @@ -131,23 +131,17 @@ static const luaL_reg imfftw_lib[] = { int imlua_open_fftw (lua_State *L) { luaL_register(L, "im", imfftw_lib); /* leave "im" table at the top of the stack */ -#ifdef TEC_BIGENDIAN -#ifdef TEC_64 -#include "loh/im_fftw_be64.loh" -#else -#include "loh/im_fftw_be32.loh" -#endif -#else -#ifdef TEC_64 -#ifdef WIN64 -#include "loh/im_fftw_le64w.loh" + +#ifdef IMLUA_USELOH +#include "im_fftw.loh" #else -#include "loh/im_fftw_le64.loh" -#endif +#ifdef IMLUA_USELZH +#include "im_fftw.lzh" #else -#include "loh/im_fftw.loh" -#endif -#endif + luaL_dofile(L, "im_fftw.lua"); +#endif +#endif + return 1; } @@ -155,8 +149,3 @@ int luaopen_imlua_fftw(lua_State *L) { return imlua_open_fftw(L); } - -int luaopen_imlua_fftw51(lua_State *L) -{ - return imlua_open_fftw(L); -} |