mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 23:37:33 +09:00
Issue #1751 -- Remove XP_MACOSX conditionals and support files from /xpcom
This commit is contained in:
parent
ccf9e5f54b
commit
df94ccb22c
40 changed files with 27 additions and 2812 deletions
|
|
@ -35,7 +35,7 @@ void MozillaUnRegisterDebugFILE(FILE* aFile);
|
|||
|
||||
MOZ_END_EXTERN_C
|
||||
|
||||
#if defined(XP_WIN) || defined(XP_MACOSX)
|
||||
#if defined(XP_WIN)
|
||||
|
||||
#ifdef __cplusplus
|
||||
namespace mozilla {
|
||||
|
|
@ -53,16 +53,6 @@ bool IsDebugFile(intptr_t aFileID);
|
|||
*/
|
||||
void InitPoisonIOInterposer();
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
/**
|
||||
* Check that writes are dirty before reporting I/O (Mac OS X only)
|
||||
* This is necessary for late-write checks on Mac OS X, but reading the buffer
|
||||
* from file to see if we're writing dirty bits is expensive, so we don't want
|
||||
* to do this for everything else that uses
|
||||
*/
|
||||
void OnlyReportDirtyWrites();
|
||||
#endif /* XP_MACOSX */
|
||||
|
||||
/**
|
||||
* Clear IO poisoning, this is only safe to do on the main-thread when no other
|
||||
* threads are running.
|
||||
|
|
@ -72,19 +62,16 @@ void ClearPoisonIOInterposer();
|
|||
} // namespace mozilla
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#else /* XP_WIN || XP_MACOSX */
|
||||
#else /* XP_WIN */
|
||||
|
||||
#ifdef __cplusplus
|
||||
namespace mozilla {
|
||||
inline bool IsDebugFile(intptr_t aFileID) { return true; }
|
||||
inline void InitPoisonIOInterposer() {}
|
||||
inline void ClearPoisonIOInterposer() {}
|
||||
#ifdef XP_MACOSX
|
||||
inline void OnlyReportDirtyWrites() {}
|
||||
#endif /* XP_MACOSX */
|
||||
} // namespace mozilla
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* XP_WIN || XP_MACOSX */
|
||||
#endif /* XP_WIN */
|
||||
|
||||
#endif // mozilla_PoisonIOInterposer_h
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue