From b1957b1e8eef6c7f9e121af63baff90e980c724d Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 7 Apr 2005 10:52:45 -0300 Subject: [PATCH] detail for Windows (untested) --- luaconf.h | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/luaconf.h b/luaconf.h index ba65a311..6a571cbc 100644 --- a/luaconf.h +++ b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.41 2005/04/06 17:30:13 roberto Exp roberto $ +** $Id: luaconf.h,v 1.42 2005/04/07 13:09:07 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -95,30 +95,27 @@ @@ LUA_API is a mark for all core API functions. @@ LUALIB_API is a mark for all standard library functions. ** CHANGE them if you need to define those functions in some special way. -** For instance, if you want to create two Windows DLLs, one with the -** core, the other with the libraries, you may want to use the following -** definition (define LUA_BUILD_AS_DLL to get it). +** For instance, if you want to create one Windows DLL with the core and +** the libraries, you may want to use the following definition (define +** LUA_BUILD_AS_DLL to get it). */ -#if defined (LUA_BUILD_AS_DLL) +#if defined(LUA_BUILD_AS_DLL) -#if defined(LUA_CORE) +#if defined(LUA_CORE) || defined(LUA_LIB) #define LUA_API __declspec(__dllexport) #else #define LUA_API __declspec(__dllimport) #endif -#if defined(LUA_LIB) -#define LUALIB_API __declspec(__dllexport) -#else -#define LUALIB_API __declspec(__dllimport) -#endif #else #define LUA_API extern -#define LUALIB_API extern #endif +/* more often then not the libs go together with the core */ +#define LUALIB_API LUA_API + /* @@ lua_assert describes the internal assertions in Lua.