From c74c464c4526232902264c66e8b52ebfbcc71e1b Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 4 Aug 2008 15:37:02 +0000 Subject: Fixing the win32 backport. --- src/plugin-luaftgl.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/plugin-luaftgl.cc') diff --git a/src/plugin-luaftgl.cc b/src/plugin-luaftgl.cc index 6cb0f0a..83f26f1 100644 --- a/src/plugin-luaftgl.cc +++ b/src/plugin-luaftgl.cc @@ -1,12 +1,18 @@ #include +#ifndef WIN32 +#define WEAK __attribute__ ((weak)) +#else +#define WEAK +#endif + static void _init_plugin(Lua * L) { LuaFTFont::pushstatics(L); } extern "C" { -__attribute__ ((weak)) void init_plugin(Lua * L) { +WEAK void init_plugin(Lua * L) { _init_plugin(L); } -- cgit v1.2.3