I need this export in order to not have the wrapper.c fail to find Game() on linux
From this point on compilation and usage of library should work on linux, at least does for me :P
--- a/hedgewars/hwLibrary.pas Sun Feb 06 11:34:52 2011 +0100
+++ b/hedgewars/hwLibrary.pas Sun Feb 06 11:39:11 2011 +0100
@@ -13,6 +13,7 @@
// to make these functions available in the C/C++/Objective-C source files
// (add "#include PascalImports.h" near the top of these files if it's not there yet)
uses PascalExports, hwengine;
+exports Game;
begin
end.
--- a/hedgewars/hwengine.pas Sun Feb 06 11:34:52 2011 +0100
+++ b/hedgewars/hwengine.pas Sun Feb 06 11:39:11 2011 +0100
@@ -36,6 +36,7 @@
{$IFDEF HWLIBRARY}
procedure initEverything(complete:boolean);
procedure freeEverything(complete:boolean);
+procedure Game(gameArgs: PPChar); cdecl; export;
implementation
{$ELSE}