From b50a48aefd83582ea70e416435e6c97c4d13bb96 Mon Sep 17 00:00:00 2001 From: Avasam Date: Sun, 20 Oct 2024 14:30:00 -0400 Subject: [PATCH] Lock behind win32 conditional --- src/d3d11.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/d3d11.py b/src/d3d11.py index 8d33fc7c..e9e4c5bb 100644 --- a/src/d3d11.py +++ b/src/d3d11.py @@ -1,5 +1,10 @@ # SPDX-License-Identifier: MIT # Copyright (c) 2024 David Lechner +import sys + +if sys.platform != "win32": + raise OSError + import ctypes import enum import uuid