compiler/bootstrap/ecere: instance.c: Put back MinGW workaround (39816d7eb907a160b8dc...
authorJerome St-Louis <jerome@ecere.com>
Tue, 30 Aug 2011 06:29:21 +0000 (02:29 -0400)
committerJerome St-Louis <jerome@ecere.com>
Tue, 30 Aug 2011 06:29:21 +0000 (02:29 -0400)
compiler/bootstrap/ecere/bootstrap/instance.c

index 1d99b19..a722618 100644 (file)
@@ -22,6 +22,9 @@ typedef unsigned __int64 uint64;
 #else
 #define __ENDIAN_PAD(x) 0
 #endif
+
+#define stdcall __attribute__((__stdcall__))
+
 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__BTNode;
 
 struct __ecereNameSpace__ecere__sys__BTNode;
@@ -343,9 +346,9 @@ void __ecereNameSpace__ecere__com__MemoryGuard_PopLoc()
 {
 }
 
-extern unsigned int __ecereDll_Load_ecere(struct __ecereNameSpace__ecere__com__Instance * module);
+extern unsigned int stdcall __ecereDll_Load_ecere(struct __ecereNameSpace__ecere__com__Instance * module);
 
-extern void __ecereDll_Unload_ecere(struct __ecereNameSpace__ecere__com__Instance * module);
+extern void stdcall __ecereDll_Unload_ecere(struct __ecereNameSpace__ecere__com__Instance * module);
 
 struct __ecereNameSpace__ecere__com__BTNamedLink
 {
@@ -4053,8 +4056,8 @@ return (((void *)0));
 static struct __ecereNameSpace__ecere__com__Instance * __ecereNameSpace__ecere__com__Module_Load(struct __ecereNameSpace__ecere__com__Instance * fromModule, char * name, int importAccess, unsigned int ensureCOM)
 {
 void * __ecereTemp1;
-unsigned int (* Load)(struct __ecereNameSpace__ecere__com__Instance * module) = (((void *)0));
-void (* Unload)(struct __ecereNameSpace__ecere__com__Instance * module) = (((void *)0));
+unsigned int (stdcall * Load)(struct __ecereNameSpace__ecere__com__Instance * module) = (((void *)0));
+void (stdcall * Unload)(struct __ecereNameSpace__ecere__com__Instance * module) = (((void *)0));
 struct __ecereNameSpace__ecere__com__Instance * module;
 
 for(module = ((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)fromModule + 12)))->application + 296)))->allModules.first; module; module = ((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + 12)))->next)
@@ -4318,7 +4321,7 @@ Unload(module);
 }
 else
 {
-unsigned int (* Unload)(struct __ecereNameSpace__ecere__com__Instance * module) = (void *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + 12)))->Unload;
+unsigned int (stdcall * Unload)(struct __ecereNameSpace__ecere__com__Instance * module) = (void *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + 12)))->Unload;
 
 Unload(module);
 }