diff options
Diffstat (limited to 'JavaScriptCore/wtf/OwnPtrCommon.h')
-rw-r--r-- | JavaScriptCore/wtf/OwnPtrCommon.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/JavaScriptCore/wtf/OwnPtrCommon.h b/JavaScriptCore/wtf/OwnPtrCommon.h index 6d91a54..c59fdc5 100644 --- a/JavaScriptCore/wtf/OwnPtrCommon.h +++ b/JavaScriptCore/wtf/OwnPtrCommon.h @@ -1,6 +1,7 @@ /* * Copyright (C) 2009 Apple Inc. All rights reserved. * Copyright (C) 2009 Torch Mobile, Inc. + * Copyright (C) 2010 Company 100 Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -37,6 +38,14 @@ typedef struct HPEN__* HPEN; typedef struct HRGN__* HRGN; #endif +#if PLATFORM(BREWMP) +// Forward delcarations at this point avoid the need to include BREW includes +// in WTF headers. +typedef struct _IFileMgr IFileMgr; +typedef struct _IFile IFile; +typedef struct IBitmap IBitmap; +#endif + namespace WTF { template <typename T> inline void deleteOwnedPtr(T* ptr) @@ -56,6 +65,12 @@ namespace WTF { void deleteOwnedPtr(HRGN); #endif +#if PLATFORM(BREWMP) + void deleteOwnedPtr(IFileMgr*); + void deleteOwnedPtr(IFile*); + void deleteOwnedPtr(IBitmap*); +#endif + } // namespace WTF #endif // WTF_OwnPtrCommon_h |