1
0
Fork 0
Commit Graph

6 Commits (7893325dc035267c8c82b1dd9c7d51b82a0b43f6)

Author SHA1 Message Date
mewmew a441cc00df Implement memset32 and fix compilation errors for storm.h
Now Golem works on Linux as well.

---

Source/../defs.h: In function ‘void memset32(void*, unsigned int, size_t)’:
Source/../defs.h:35:8: error: expected ‘(’ before ‘{’ token
  __asm {
        ^
Source/../defs.h:36:3: error: ‘mov’ was not declared in this scope
   mov ecx, n

---

Source/../3rdParty/Storm/Source/storm.h:1300:15: error: conflicting declaration of C function ‘int SNetGetProviderCaps(_SNETCAPS*)’
 int __stdcall SNetGetProviderCaps(struct _SNETCAPS *);

---

Source/../3rdParty/Storm/Source/storm.h:1297:18: error: conflicting declaration of C function ‘void* SNetRegisterEventHandler(int, void (__attribute__((__stdcall__)) *)(_SNETEVENT*))’
 void * __stdcall SNetRegisterEventHandler(int,void (__stdcall*)(struct _SNETEVENT *));

---

Source/../3rdParty/Storm/Source/storm.h:1299:15: error: conflicting declaration of C function ‘int SNetInitializeProvider(long unsigned int, _SNETPROGRAMDATA*, _SNETPLAYERDATA*, _SNETUIDATA*, _SNETVERSIONDATA*)’
 int __stdcall SNetInitializeProvider(unsigned long,struct _SNETPROGRAMDATA *,struct _SNETPLAYERDATA *,struct _SNETUIDATA *,struct _SNETVERSIONDATA *);

---

Source/multi.cpp:1046:75: error: cannot convert ‘_SNETPROGRAMDATA*’ to ‘client_info* {aka _client_info*}’ for argument ‘2’ to ‘BOOL SNetInitializeProvider(DWORD, client_info*, user_info*, battle_info*, module_info*)’
2018-06-11 09:09:41 +02:00
galaxyhaxz e8bc617743
Fix compatibility with GNU/MSVC 2018-06-08 21:14:44 -05:00
mewmew f5f76f8b8a Fix build on Linux 2018-06-08 11:23:30 +02:00
galaxyhaxz b1ee40f6e7
Revert "Add preliminary support for compiling on Linux" 2018-06-07 22:00:35 -05:00
mewmew 1836399875 Fix linking against storm.dll and diabloui.dll
* add aliases for storm exports to handle __stdcall calling convention on Linux
* mark external functions as extern "C"
2018-06-08 01:28:20 +02:00
galaxyhaxz c4eb2b777c
Add files via upload 2018-06-06 21:23:06 -05:00