python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / tix / duplicated-xlowerwindow.patch
blob0ea888749a2f1f3bb3ad63a0f81162da8e67296a
1 This is duplicated code from Tk.
2 It causes errors during build since XLowerWindow is not only a function but also "defined" in tkIntXlibDecls.h.
4 See
5 https://github.com/tcltk/tk/blob/71dcaddc69769cbd3e2c4b5edb5810f974579527/generic/tkIntXlibDecls.h#L396
6 and
7 https://github.com/tcltk/tk/blob/71dcaddc69769cbd3e2c4b5edb5810f974579527/generic/tkIntXlibDecls.h#L1487
9 --- a/unix/tixUnixWm.c 2005-03-25 13:15:53.000000000 -0700
10 +++ b/unix/tixUnixWm.c 2021-03-20 07:31:52.000000000 -0700
11 @@ -24,38 +24,3 @@
13 return TCL_OK;
16 -#ifdef MAC_OSX_TK
17 -#include "tkInt.h"
18 -/*
19 - *----------------------------------------------------------------------
20 - *
21 - * XLowerWindow --
22 - *
23 - * Change the stacking order of a window.
24 - *
25 - * Results:
26 - * None.
27 - *
28 - * Side effects:
29 - * Changes the stacking order of the specified window.
30 - *
31 - *----------------------------------------------------------------------
32 - */
34 -int
35 -XLowerWindow(
36 - Display* display, /* Display. */
37 - Window window) /* Window. */
39 - TkWindow *winPtr = *((TkWindow **) window);
41 - display->request++;
42 - if (Tk_IsTopLevel(winPtr) && !Tk_IsEmbedded(winPtr)) {
43 - TkWmRestackToplevel(winPtr, Below, NULL);
44 - } else {
45 - /* TODO: this should generate damage */
46 - }
47 - return 0;
49 -#endif