summaryrefslogtreecommitdiffstats
path: root/third_party/libjpeg/libjpeg.scons
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/libjpeg/libjpeg.scons')
-rw-r--r--third_party/libjpeg/libjpeg.scons4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/libjpeg/libjpeg.scons b/third_party/libjpeg/libjpeg.scons
index fdb2c2a..16b6bc3 100644
--- a/third_party/libjpeg/libjpeg.scons
+++ b/third_party/libjpeg/libjpeg.scons
@@ -41,14 +41,14 @@ env.Prepend(
],
)
-if env['PLATFORM'] == 'win32':
+if env.Bit('windows'):
env.Append(
CCFLAGS = [
'/TC',
'/wd4800',
],
)
-elif env['PLATFORM'] == 'posix':
+elif env.Bit('linux'):
if '-Wall' in env['CCFLAGS']:
# We're not responsible for bad warning hygiene in this third party code.
env['CCFLAGS'].remove('-Wall')