mesa/main: remove unused IROUNDD
[mesa.git] / scons / gallium.py
index c0f6f6c91cac77b7ce9fdbc23302d05ebff8a910..ea212d15a95714356e3aa6c97faa9ce310f635cf 100755 (executable)
@@ -491,8 +491,11 @@ def generate(env):
             '-Werror=missing-prototypes',
             '-Werror=return-type',
             '-Werror=incompatible-pointer-types',
-            '-std=gnu99',
         ]
+        if platform == 'darwin' and host_platform.mac_ver()[0] >= '10.15':
+            cflags += ['-std=gnu11']
+        else:
+            cflags += ['-std=gnu99']
     if icc:
         cflags += [
             '-std=gnu99',