harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-5798) Getting Harmony to build on Free versions of tools from MSFT on Win32
Date Sun, 27 Apr 2008 11:06:55 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-5798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12592640#action_12592640
] 

Davanum Srinivas commented on HARMONY-5798:
-------------------------------------------

Those who are using the ATL in the PSDK as opposed to the one inside the standard/professional
version of Visual Studio need to patch their atlbase.h as mentioned here:

http://developer.mozilla.org/en/docs/Mozilla_Build_FAQ

--- atlbase.h.old       2006-06-08 08:20:26.671875000 -0400
+++ atlbase.h   2006-06-08 08:13:26.578125000 -0400
@@ -283,7 +283,7 @@
         }
 };
 #pragma pack(pop)
-
+/*
 PVOID __stdcall __AllocStdCallThunk(VOID);
 VOID  __stdcall __FreeStdCallThunk(PVOID);

@@ -291,6 +291,11 @@
 #define FreeStdCallThunk(p) __FreeStdCallThunk(p)

 #pragma comment(lib, "atlthunk.lib")
+*/
+
+// workaround for not having atlthunk.lib in PSDK or VC++ 2005 Express Edition
+#define AllocStdCallThunk() HeapAlloc(GetProcessHeap(),0,sizeof(_stdcallthunk))
+#define FreeStdCallThunk(p) HeapFree(GetProcessHeap(), 0, p)

 #elif defined (_M_AMD64)
 #pragma pack(push,2)

> Getting Harmony to build on Free versions of tools from MSFT on Win32
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-5798
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5798
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Davanum Srinivas
>         Attachments: harmony-on-win32-free-tools.diff
>
>
> Tim,
> Here's a fresh patch as a follow up to our email thread a few months ago:
> http://markmail.org/message/whdid3se7jfuw5vc
> The patch passes the simple test in that email
> public class LoadDLL { 
>     public static void main(String[] args) { 
>         System.out.println("Loading Win32Wrapper..."); 
>         System.loadLibrary("Win32Wrapper"); 
>         System.out.println("Loaded!"); 
>     } 
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message