[issue43335] _ctypes/callbacks.c cannot be compiled by gcc 4.4.7 (RHEL6)

2021-02-27 Thread DANIEL VILLENEUVE
DANIEL VILLENEUVE added the comment: I'll let you do so if it's ok for you, since I'm not equipped with Python dev tools. Regards -- ___ Python tracker <https://bugs.pyt

[issue43335] _ctypes/callbacks.c cannot be compiled by gcc 4.4.7 (RHEL6)

2021-02-26 Thread DANIEL VILLENEUVE
New submission from DANIEL VILLENEUVE : gcc 4.4.7 does not accept #pragma's inside functions. I made the following patch, inspired by code found in other Python source files. diff -r U/Python-3.9.2/Modules/_ctypes/callbacks.c V/Python-3.9.2/Modules/_ctypes/callbacks.c 433c433 < #if