Remove a number of 'visibility' related warnings on linux.

git-svn-id: svn://10.0.0.236/trunk@187994 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mhammond%skippinet.com.au
2006-01-22 04:16:33 +00:00
parent a20a7ff309
commit 3f5cd7f9ad
7 changed files with 48 additions and 35 deletions

View File

@@ -51,7 +51,8 @@
#include <nsIInputStream.h>
static PRInt32 cGateways = 0;
PRInt32 _PyXPCOM_GetGatewayCount(void)
PYXPCOM_EXPORT PRInt32 _PyXPCOM_GetGatewayCount(void)
{
return cGateways;
}
@@ -60,9 +61,8 @@ extern PyG_Base *MakePyG_nsIModule(PyObject *);
extern PyG_Base *MakePyG_nsIInputStream(PyObject *instance);
static char *PyXPCOM_szDefaultGatewayAttributeName = "_com_instance_default_gateway_";
PyG_Base *GetDefaultGateway(PyObject *instance);
void AddDefaultGateway(PyObject *instance, nsISupports *gateway);
PRBool CheckDefaultGateway(PyObject *real_inst, REFNSIID iid, nsISupports **ret_gateway);
static PyG_Base *GetDefaultGateway(PyObject *instance);
static PRBool CheckDefaultGateway(PyObject *real_inst, REFNSIID iid, nsISupports **ret_gateway);
/*static*/ nsresult
PyG_Base::CreateNew(PyObject *pPyInstance, const nsIID &iid, void **ppResult)
@@ -807,7 +807,7 @@ PRBool CheckDefaultGateway(PyObject *real_inst, REFNSIID iid, nsISupports **ret_
return PR_FALSE;
}
void AddDefaultGateway(PyObject *instance, nsISupports *gateway)
PYXPCOM_EXPORT void AddDefaultGateway(PyObject *instance, nsISupports *gateway)
{
// NOTE: Instance is the _policy_!
PyObject *real_inst = PyObject_GetAttrString(instance, "_obj_");