New submission from DANIEL VILLENEUVE <dvilleneuve.4...@gmail.com>:
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 defined(__GNUC__) --- > #if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && > (__GNUC_MINOR__ > 5))) 442c442 < #if defined(__GNUC__) --- > #if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && > (__GNUC_MINOR__ > 5))) Regards ---------- components: ctypes messages: 387755 nosy: dvilleneuve priority: normal severity: normal status: open title: _ctypes/callbacks.c cannot be compiled by gcc 4.4.7 (RHEL6) type: compile error versions: Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43335> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com