summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-08-04 02:38:59 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-08-04 02:38:59 (GMT)
commit70214ad55d475ab9b719ab0d908e48385bad981d (patch)
treefb2ed6d6f8958fbfacef41d99545fba214366770 /Modules/posixmodule.c
parent0c859f362c77f705a235a1a8513313e5d6d01c84 (diff)
downloadcpython-70214ad55d475ab9b719ab0d908e48385bad981d.zip
cpython-70214ad55d475ab9b719ab0d908e48385bad981d.tar.gz
cpython-70214ad55d475ab9b719ab0d908e48385bad981d.tar.bz2
Issue #17599: Use unique _Py_REPARSE_DATA_BUFFER etc names to avoid conflict
The conflict occurs with Min GW, which already defines REPARSE_DATA_BUFFER. Also, Min GW uses a lowercase <windows.h> filename.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 54685ae..6adc7f4 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -1106,8 +1106,8 @@ _PyVerify_fd_dup2(int fd1, int fd2)
static int
win32_get_reparse_tag(HANDLE reparse_point_handle, ULONG *reparse_tag)
{
- char target_buffer[MAXIMUM_REPARSE_DATA_BUFFER_SIZE];
- REPARSE_DATA_BUFFER *rdb = (REPARSE_DATA_BUFFER *)target_buffer;
+ char target_buffer[_Py_MAXIMUM_REPARSE_DATA_BUFFER_SIZE];
+ _Py_REPARSE_DATA_BUFFER *rdb = (_Py_REPARSE_DATA_BUFFER *)target_buffer;
DWORD n_bytes_returned;
if (0 == DeviceIoControl(
@@ -7149,8 +7149,8 @@ win_readlink(PyObject *self, PyObject *args, PyObject *kwargs)
int dir_fd;
HANDLE reparse_point_handle;
- char target_buffer[MAXIMUM_REPARSE_DATA_BUFFER_SIZE];
- REPARSE_DATA_BUFFER *rdb = (REPARSE_DATA_BUFFER *)target_buffer;
+ char target_buffer[_Py_MAXIMUM_REPARSE_DATA_BUFFER_SIZE];
+ _Py_REPARSE_DATA_BUFFER *rdb = (_Py_REPARSE_DATA_BUFFER *)target_buffer;
const wchar_t *print_name;
static char *keywords[] = {"path", "dir_fd", NULL};