Mercurial > projects > dwt-mac
comparison dwt/internal/mozilla/nsISupports.d @ 154:535243e6d16a
Fixes to make dwt compile with ldc
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sat, 13 Jun 2009 00:25:05 +0200 |
parents | 5583f8eeee6c |
children |
comparison
equal
deleted
inserted
replaced
153:8433dabeb15e | 154:535243e6d16a |
---|---|
10 [ 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46 ] }; | 10 [ 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46 ] }; |
11 | 11 |
12 interface IUnknown | 12 interface IUnknown |
13 { | 13 { |
14 static const char[] IID_STR = NS_ISUPPORTS_IID_STR; | 14 static const char[] IID_STR = NS_ISUPPORTS_IID_STR; |
15 static const nsIID IID = NS_ISUPPORTS_IID; | 15 static /*const*/ nsIID IID = NS_ISUPPORTS_IID; // const causes bug in ldc TODO |
16 | 16 |
17 extern(System): | 17 extern(System): //causes assert in ldc TODO |
18 nsresult QueryInterface( nsIID* uuid, void **result); | 18 nsresult QueryInterface( nsIID* uuid, void **result); |
19 | |
20 nsrefcnt AddRef(); | 19 nsrefcnt AddRef(); |
21 nsrefcnt Release(); | 20 nsrefcnt Release(); |
22 } | 21 } |
23 | 22 |
24 // WHY WE USE COM's IUnknown for XPCOM: | 23 // WHY WE USE COM's IUnknown for XPCOM: |