Skip to content
Permalink
Browse files
Enable redefining exporting of loader function
  • Loading branch information
xolox committed Feb 20, 2011
1 parent e037d8f commit 2289ffb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
@@ -1,7 +1,7 @@
# This is the Windows makefile for the Lua/APR binding.
#
# Author: Peter Odding <peter@peterodding.com>
# Last Change: February 19, 2011
# Last Change: February 20, 2011
# Homepage: http://peterodding.com/code/lua/apr/
# License: MIT
#
@@ -75,7 +75,7 @@ OBJECTS = src\base64.obj \
# Build rules.

core.dll: $(OBJECTS)
LINK /nologo /dll /out:$@ /export:luaopen_apr_core $(OBJECTS) $(LFLAGS)
LINK /nologo /dll /out:$@ $(OBJECTS) $(LFLAGS)
IF EXIST $@.manifest MT -nologo -manifest $@.manifest -outputresource:$@;2

.c.obj:
@@ -34,7 +34,16 @@ lua_apr_objtype *lua_apr_types[] = {

/* luaopen_apr_core() initializes the binding and library. {{{1 */

int luaopen_apr_core(lua_State *L)
/* Enable redefining exporting of loader function, with sane defaults. */
#ifndef LUA_APR_EXPORT
# ifdef WIN32
# define LUA_APR_EXPORT __declspec(dllexport)
# else
# define LUA_APR_EXPORT extern
# endif
#endif

LUA_APR_EXPORT int luaopen_apr_core(lua_State *L)
{
apr_status_t status;

0 comments on commit 2289ffb

Please sign in to comment.