# HG changeset patch # User sheepluva # Date 1296988751 -3600 # Node ID 3dca560e65108b0aa3030cad1249844cf8ceb322 # Parent 6ebbca9605039fec64ca924c5a5c0d42813bb18b 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 diff -r 6ebbca960503 -r 3dca560e6510 hedgewars/hwLibrary.pas --- 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. diff -r 6ebbca960503 -r 3dca560e6510 hedgewars/hwengine.pas --- 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}