Bug 683891: Stop exporting THEBES_API symbols from libxul. r=glandium

This commit is contained in:
Kyle Huey 2012-01-06 09:44:25 -05:00
parent 9cc71b5f7f
commit b82fe49789
2 changed files with 16 additions and 5 deletions

View File

@ -57,9 +57,24 @@ struct nsIntRect;
*/
class THEBES_API gfxASurface {
public:
#ifdef MOZILLA_INTERNAL_API
nsrefcnt AddRef(void);
nsrefcnt Release(void);
// These functions exist so that browsercomps can refcount a gfxASurface
virtual nsresult AddRefExternal(void)
{
return AddRef();
}
virtual nsresult ReleaseExternal(void)
{
return Release();
}
#else
virtual nsresult AddRef(void);
virtual nsresult Release(void);
#endif
public:
/**
* The format for an image surface. For all formats with alpha data, 0

View File

@ -47,11 +47,7 @@
*/
typedef double gfxFloat;
#if defined(IMPL_THEBES)
# define THEBES_API NS_EXPORT
#else
# define THEBES_API NS_IMPORT
#endif
# define THEBES_API
/**
* gfx errors