Use typeof() to implement NS_STDCALL_FUNCPROTO so that pointer-to-member types using stdcall work on mingw gcc. Bug 203137, r=cls, sr=dbaron.
This commit is contained in:
@@ -143,6 +143,18 @@ enum RDFContentSinkParseMode {
|
||||
|
||||
MOZ_DECL_CTOR_COUNTER(RDFContentSinkImpl::NameSpaceEntry)
|
||||
|
||||
typedef
|
||||
NS_STDCALL_FUNCPROTO(nsresult,
|
||||
nsContainerTestFn,
|
||||
nsIRDFContainerUtils, IsAlt,
|
||||
(nsIRDFDataSource*, nsIRDFResource*, PRBool*));
|
||||
|
||||
typedef
|
||||
NS_STDCALL_FUNCPROTO(nsresult,
|
||||
nsMakeContainerFn,
|
||||
nsIRDFContainerUtils, MakeAlt,
|
||||
(nsIRDFDataSource*, nsIRDFResource*, nsIRDFContainer**));
|
||||
|
||||
class RDFContentSinkImpl : public nsIRDFContentSink,
|
||||
public nsIExpatSink
|
||||
{
|
||||
@@ -192,17 +204,6 @@ public:
|
||||
static nsIAtom* kXMLNSAtom;
|
||||
static nsIAtom* kParseTypeAtom;
|
||||
|
||||
typedef nsresult
|
||||
NS_STDCALL_FUNCPROTO(nsIRDFContainerUtils::*nsContainerTestFn,
|
||||
(nsIRDFDataSource* aDataSource,
|
||||
nsIRDFResource* aResource,
|
||||
PRBool* aResult));
|
||||
|
||||
typedef nsresult
|
||||
NS_STDCALL_FUNCPROTO(nsIRDFContainerUtils::*nsMakeContainerFn,
|
||||
(nsIRDFDataSource* aDataSource,
|
||||
nsIRDFResource* aContainer,
|
||||
nsIRDFContainer** aResult));
|
||||
|
||||
typedef struct ContainerInfo {
|
||||
nsIRDFResource** mType;
|
||||
|
||||
Reference in New Issue
Block a user