I need this export in order to not have the wrapper.c fail to find Game() on linux
authorsheepluva
Sun, 06 Feb 2011 11:39:11 +0100
changeset 4929 3dca560e6510
parent 4928 6ebbca960503
child 4930 5d59bb58c365
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
hedgewars/hwLibrary.pas
hedgewars/hwengine.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.
--- 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}