added --enable-libltdl to configure
This commit is contained in:
@ -5039,11 +5039,11 @@ static int compile_while_expression (moo_t* moo)
|
||||
}
|
||||
else if (prebbpos < postbbpos)
|
||||
{
|
||||
/* emit code to pop the value pushed by the braced block */
|
||||
/* emit an instruction to pop the value pushed by the braced block */
|
||||
if (emit_byte_instruction (moo, BCODE_POP_STACKTOP) <= -1) goto oops;
|
||||
}
|
||||
|
||||
/* emit code to jump back to the condition */
|
||||
/* emit an instruction to jump back to the condition */
|
||||
if (emit_backward_jump_instruction (moo, BCODE_JUMP_BACKWARD_0, moo->c->mth.code.len - precondpos) <= -1)
|
||||
{
|
||||
if (moo->errnum == MOO_ERANGE)
|
||||
|
@ -36,7 +36,7 @@
|
||||
#if defined(_WIN32)
|
||||
# include <windows.h>
|
||||
# include <tchar.h>
|
||||
# if defined(MOO_HAVE_CFG_H)
|
||||
# if defined(MOO_HAVE_CFG_H) && defined(MOO_ENABLE_LIBLTDL)
|
||||
# include <ltdl.h>
|
||||
# define USE_LTDL
|
||||
# endif
|
||||
@ -53,8 +53,13 @@
|
||||
# include <Timer.h>
|
||||
#else
|
||||
# include <unistd.h>
|
||||
# include <ltdl.h>
|
||||
# define USE_LTDL
|
||||
# if defined(MOO_ENABLE_LIBLTDL)
|
||||
# include <ltdl.h>
|
||||
# define USE_LTDL
|
||||
# else
|
||||
# include <dlfcn.h>
|
||||
# error NOT IMPLEMENTED
|
||||
# endif
|
||||
|
||||
# if defined(HAVE_TIME_H)
|
||||
# include <time.h>
|
||||
|
@ -323,6 +323,9 @@
|
||||
/* Define to the shared archive member specification, say "(shr.o)". */
|
||||
#undef LT_SHARED_LIB_MEMBER
|
||||
|
||||
/* use libltdl */
|
||||
#undef MOO_ENABLE_LIBLTDL
|
||||
|
||||
/* link modules statically into the main library */
|
||||
#undef MOO_ENABLE_STATIC_MODULE
|
||||
|
||||
|
Reference in New Issue
Block a user