Cross-Platform build scripts for audio plugins
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
4.6KB

  1. diff -Naur Python-3.8.0-orig/Modules/_winapi.c Python-3.8.0/Modules/_winapi.c
  2. --- Python-3.8.0-orig/Modules/_winapi.c 2019-10-22 10:01:51.434032500 +0300
  3. +++ Python-3.8.0/Modules/_winapi.c 2019-10-22 10:05:34.654824500 +0300
  4. @@ -951,7 +951,7 @@
  5. DWORD err;
  6. BOOL result;
  7. PyObject *value;
  8. - Py_ssize_t handle_list_size;
  9. + Py_ssize_t handle_list_size = 0;
  10. DWORD attribute_count = 0;
  11. SIZE_T attribute_list_size = 0;
  12. diff -Naur Python-3.8.0-orig/Modules/posixmodule.c Python-3.8.0/Modules/posixmodule.c
  13. --- Python-3.8.0-orig/Modules/posixmodule.c 2019-10-22 10:04:46.029539100 +0300
  14. +++ Python-3.8.0/Modules/posixmodule.c 2019-10-22 10:05:35.076025300 +0300
  15. @@ -4804,7 +4804,7 @@
  16. /*[clinic end generated code: output=cfcac69d027b82cf input=2fbd62a2f228f8f4]*/
  17. {
  18. #ifdef MS_WINDOWS
  19. - HANDLE hFile;
  20. + HANDLE hFile = 0;
  21. FILETIME atime, mtime;
  22. #else
  23. int result;
  24. @@ -12225,7 +12225,9 @@
  25. int ncpu = 0;
  26. #ifdef MS_WINDOWS
  27. /* Declare prototype here to avoid pulling in all of the Win7 APIs in 3.8 */
  28. +#if defined (_WIN32_WINNT) && (_WIN32_WINNT < 0x601)
  29. DWORD WINAPI GetActiveProcessorCount(WORD group);
  30. +#endif
  31. ncpu = GetActiveProcessorCount(ALL_PROCESSOR_GROUPS);
  32. #elif defined(__hpux)
  33. ncpu = mpctl(MPC_GETNUMSPUS, NULL, NULL);
  34. @@ -13489,7 +13491,7 @@
  35. loaded. */
  36. Py_BEGIN_ALLOW_THREADS
  37. if (!(hKernel32 = GetModuleHandleW(L"kernel32")) ||
  38. - !(AddDllDirectory = (PAddDllDirectory)GetProcAddress(
  39. + !(AddDllDirectory = (PAddDllDirectory)(void *)GetProcAddress(
  40. hKernel32, "AddDllDirectory")) ||
  41. !(cookie = (*AddDllDirectory)(path->wide))) {
  42. err = GetLastError();
  43. @@ -13539,7 +13541,7 @@
  44. loaded. */
  45. Py_BEGIN_ALLOW_THREADS
  46. if (!(hKernel32 = GetModuleHandleW(L"kernel32")) ||
  47. - !(RemoveDllDirectory = (PRemoveDllDirectory)GetProcAddress(
  48. + !(RemoveDllDirectory = (PRemoveDllDirectory)(void *)GetProcAddress(
  49. hKernel32, "RemoveDllDirectory")) ||
  50. !(*RemoveDllDirectory)(cookieValue)) {
  51. err = GetLastError();
  52. diff -Naur Python-3.8.0-orig/Modules/socketmodule.h Python-3.8.0/Modules/socketmodule.h
  53. --- Python-3.8.0-orig/Modules/socketmodule.h 2019-10-14 16:34:47.000000000 +0300
  54. +++ Python-3.8.0/Modules/socketmodule.h 2019-10-22 10:05:35.466026000 +0300
  55. @@ -29,8 +29,10 @@
  56. */
  57. # ifdef SIO_GET_MULTICAST_FILTER
  58. # include <mstcpip.h> /* for SIO_RCVALL */
  59. +#ifndef __MINGW32__ /* resolve by configure */
  60. # define HAVE_ADDRINFO
  61. # define HAVE_SOCKADDR_STORAGE
  62. +#endif
  63. # define HAVE_GETADDRINFO
  64. # define HAVE_GETNAMEINFO
  65. # define ENABLE_IPV6
  66. diff -Naur Python-3.8.0-orig/PC/python_exe.rc Python-3.8.0/PC/python_exe.rc
  67. --- Python-3.8.0-orig/PC/python_exe.rc 2019-10-14 16:34:47.000000000 +0300
  68. +++ Python-3.8.0/PC/python_exe.rc 2019-10-22 10:05:35.871626700 +0300
  69. @@ -7,7 +7,7 @@
  70. #include <winuser.h>
  71. 1 RT_MANIFEST "python.manifest"
  72. -1 ICON DISCARDABLE "icons\python.ico"
  73. +1 ICON DISCARDABLE "icons/python.ico"
  74. /////////////////////////////////////////////////////////////////////////////
  75. diff -Naur Python-3.8.0-orig/PC/pythonw_exe.rc Python-3.8.0/PC/pythonw_exe.rc
  76. --- Python-3.8.0-orig/PC/pythonw_exe.rc 2019-10-14 16:34:47.000000000 +0300
  77. +++ Python-3.8.0/PC/pythonw_exe.rc 2019-10-22 10:05:36.277227400 +0300
  78. @@ -7,7 +7,7 @@
  79. #include <winuser.h>
  80. 1 RT_MANIFEST "python.manifest"
  81. -1 ICON DISCARDABLE "icons\pythonw.ico"
  82. +1 ICON DISCARDABLE "icons/pythonw.ico"
  83. /////////////////////////////////////////////////////////////////////////////
  84. diff -Naur Python-3.8.0-orig/PC/winreg.c Python-3.8.0/PC/winreg.c
  85. --- Python-3.8.0-orig/PC/winreg.c 2019-10-22 10:01:02.698546800 +0300
  86. +++ Python-3.8.0/PC/winreg.c 2019-10-22 10:05:36.682828100 +0300
  87. @@ -800,6 +800,7 @@
  88. case REG_BINARY:
  89. /* ALSO handle ALL unknown data types here. Even if we can't
  90. support it natively, we should handle the bits. */
  91. + /* fallthrough */
  92. default:
  93. if (retDataSize == 0) {
  94. Py_INCREF(Py_None);
  95. diff -Naur Python-3.8.0-orig/Python/thread_nt.h Python-3.8.0/Python/thread_nt.h
  96. --- Python-3.8.0-orig/Python/thread_nt.h 2019-10-14 16:34:47.000000000 +0300
  97. +++ Python-3.8.0/Python/thread_nt.h 2019-10-22 10:05:37.088428800 +0300
  98. @@ -342,8 +342,9 @@
  99. {
  100. dprintf(("%lu: PyThread_release_lock(%p) called\n", PyThread_get_thread_ident(),aLock));
  101. - if (!(aLock && LeaveNonRecursiveMutex((PNRMUTEX) aLock)))
  102. + if (!(aLock && LeaveNonRecursiveMutex((PNRMUTEX) aLock))) {
  103. dprintf(("%lu: Could not PyThread_release_lock(%p) error: %ld\n", PyThread_get_thread_ident(), aLock, GetLastError()));
  104. + }
  105. }
  106. /* minimum/maximum thread stack sizes supported */