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.

57 lines
1.9KB

  1. diff -Naur Python-3.8.0-orig/configure.ac Python-3.8.0/configure.ac
  2. --- Python-3.8.0-orig/configure.ac 2019-10-22 10:00:56.583336100 +0300
  3. +++ Python-3.8.0/configure.ac 2019-10-22 10:00:58.938940200 +0300
  4. @@ -3181,6 +3181,13 @@
  5. fi])
  6. AC_MSG_RESULT($with_dbmliborder)
  7. +# Determine if windows modules should be used.
  8. +AC_SUBST(USE_WIN32_MODULE)
  9. +USE_WIN32_MODULE='#'
  10. +case $host in
  11. + not_this_one) USE_WIN32_MODULE=;;
  12. +esac
  13. +
  14. # Templates for things AC_DEFINEd more than once.
  15. # For a single AC_DEFINE, no template is needed.
  16. AH_TEMPLATE(_REENTRANT,
  17. diff -Naur Python-3.8.0-orig/Modules/Setup.config.in Python-3.8.0/Modules/Setup.config.in
  18. --- Python-3.8.0-orig/Modules/Setup.config.in 2019-10-22 10:00:57.800138200 +0300
  19. +++ Python-3.8.0/Modules/Setup.config.in 2019-10-22 10:00:59.328940900 +0300
  20. @@ -6,3 +6,6 @@
  21. # init system calls(posix/nt/...) for INITFUNC (used by makesetup)
  22. @INITSYS@ -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal posixmodule.c
  23. +# build-in modules for windows platform:
  24. +@USE_WIN32_MODULE@winreg ../PC/winreg.c
  25. +
  26. diff -Naur Python-3.8.0-orig/PC/winreg.c Python-3.8.0/PC/winreg.c
  27. --- Python-3.8.0-orig/PC/winreg.c 2019-10-14 16:34:47.000000000 +0300
  28. +++ Python-3.8.0/PC/winreg.c 2019-10-22 10:00:59.734541600 +0300
  29. @@ -17,6 +17,25 @@
  30. #include "structmember.h"
  31. #include "windows.h"
  32. +#ifndef SIZEOF_HKEY
  33. +/* used only here */
  34. +#if defined(MS_WIN64)
  35. +# define SIZEOF_HKEY 8
  36. +#elif defined(MS_WIN32)
  37. +# define SIZEOF_HKEY 4
  38. +#else
  39. +# error "SIZEOF_HKEY is not defined"
  40. +#endif
  41. +#endif
  42. +
  43. +#ifndef REG_LEGAL_CHANGE_FILTER
  44. +#define REG_LEGAL_CHANGE_FILTER (\
  45. + REG_NOTIFY_CHANGE_NAME |\
  46. + REG_NOTIFY_CHANGE_ATTRIBUTES |\
  47. + REG_NOTIFY_CHANGE_LAST_SET |\
  48. + REG_NOTIFY_CHANGE_SECURITY )
  49. +#endif
  50. +
  51. static BOOL PyHKEY_AsHKEY(PyObject *ob, HKEY *pRes, BOOL bNoneOK);
  52. static BOOL clinic_HKEY_converter(PyObject *ob, void *p);
  53. static PyObject *PyHKEY_FromHKEY(HKEY h);