endif
if with_dri_platform == 'drm'
pre_args += '-DGLX_USE_DRM'
+ elif with_dri_platform == 'windows'
+ pre_args += '-DGLX_USE_WINDOWSGL'
endif
endif
else
endif
# TODO: this is very incomplete
-if host_machine.system() == 'linux'
+if ['linux', 'cygwin'].contains(host_machine.system())
pre_args += '-D_GNU_SOURCE'
endif