[libxml2] Fix libxml_PyFileGet
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Fix libxml_PyFileGet
- Date: Sun, 4 Sep 2022 21:03:37 +0000 (UTC)
commit 71736b4e9a8fb458841c05495c805ddf89027700
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Sun Sep 4 16:16:37 2022 +0200
Fix libxml_PyFileGet
Broken in commit 75cdb6dd.
python/types.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/python/types.c b/python/types.c
index 00e04d3b..644752ec 100644
--- a/python/types.c
+++ b/python/types.c
@@ -81,14 +81,10 @@ libxml_PyFileGet(PyObject *f) {
int flags;
FILE *res;
const char *mode;
-
-#ifdef _WIN32
- intptr_t w_fh = -1;
-#else
int fd = PyObject_AsFileDescriptor(f);
-#endif
#ifdef _WIN32
+ intptr_t w_fh = -1;
HMODULE hntdll = NULL;
IO_STATUS_BLOCK status_block;
FILE_ACCESS_INFORMATION ai;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]