diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-05-12 16:19:33 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-05-12 16:19:58 +0200 |
commit | 6571d2ceb42930dab01677ef0e95e732d5076fb8 (patch) | |
tree | 8c593b8e09f2cfb457df72d40dc719bb0e0df066 /xpcom/glue | |
parent | 2f359ed80ccb2cab440c0cda886404ed42ad9fdf (diff) | |
download | UXP-6571d2ceb42930dab01677ef0e95e732d5076fb8.tar UXP-6571d2ceb42930dab01677ef0e95e732d5076fb8.tar.gz UXP-6571d2ceb42930dab01677ef0e95e732d5076fb8.tar.lz UXP-6571d2ceb42930dab01677ef0e95e732d5076fb8.tar.xz UXP-6571d2ceb42930dab01677ef0e95e732d5076fb8.zip |
Remove MOZ_WIDGET_GONK [1/2]
Tag #288
Diffstat (limited to 'xpcom/glue')
-rw-r--r-- | xpcom/glue/FileUtils.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/xpcom/glue/FileUtils.h b/xpcom/glue/FileUtils.h index aaf912b21..b808d52e0 100644 --- a/xpcom/glue/FileUtils.h +++ b/xpcom/glue/FileUtils.h @@ -161,7 +161,7 @@ void ReadAhead(filedesc_t aFd, const size_t aOffset = 0, const size_t aCount = SIZE_MAX); -#if defined(MOZ_WIDGET_GONK) || defined(XP_UNIX) +#if defined(XP_UNIX) #define MOZ_TEMP_FAILURE_RETRY(exp) (__extension__({ \ typeof (exp) _rc; \ do { \ @@ -171,10 +171,9 @@ void ReadAhead(filedesc_t aFd, const size_t aOffset = 0, })) #endif -/* Define ReadSysFile() and WriteSysFile() only on GONK to avoid unnecessary - * libxul bloat. Also define it in debug builds, so that unit tests for it can - * be written and run in non-GONK builds. */ -#if (defined(MOZ_WIDGET_GONK) || defined(DEBUG)) && defined(XP_UNIX) +/* Define ReadSysFile() and WriteSysFile() only in debug builds, so that + * unit tests for it can be written and run. */ +#if defined(DEBUG) && defined(XP_UNIX) #ifndef ReadSysFile_PRESENT #define ReadSysFile_PRESENT @@ -213,7 +212,7 @@ bool ReadSysFile(const char* aFilename, bool* aVal); bool WriteSysFile(const char* aFilename, const char* aBuf); -#endif /* (MOZ_WIDGET_GONK || DEBUG) && XP_UNIX */ +#endif /* DEBUG && XP_UNIX */ } // namespace mozilla |