util/os_file: replace broken windows-detection code with detect_os.h
authorEric Engestrom <eric@engestrom.ch>
Fri, 5 Jun 2020 10:39:28 +0000 (12:39 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 18 Jun 2020 02:09:56 +0000 (02:09 +0000)
commitb00e1d9ea77a409cc15e57568284d48bdb9443c2
treefbaaaed26968243552ff8550795dd8291cc1fb93
parentbf63da3e95a0f6ba77651a5408702ef7b551a47d
util/os_file: replace broken windows-detection code with detect_os.h

The meson-windows-vs2019 job was going down the `!defined(WIN32)` path,
leading to a broken build once that path contained non-windows code.

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5369>
src/util/os_file.c