File: libsdl-1.2.15-const-xdata32.1.patch

package info (click to toggle)
libalien-sdl-perl 1.446-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,576 kB
  • sloc: perl: 1,317; ansic: 130; makefile: 4
file content (20 lines) | stat: -r--r--r-- 786 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- SDL-1.2/configure.in	2012-05-28 13:21:49.000000000 +0200
+++ SDL-1.2/configure.in	2014-04-22 20:22:46.000000000 +0200
@@ -1127,6 +1127,17 @@
             if test x$definitely_enable_video_x11_xrandr = xyes; then
                 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XRANDR)
             fi
+            AC_MSG_CHECKING(for const parameter to _XData32)
+            have_const_param_xdata32=no
+            AC_TRY_COMPILE([
+              #include <X11/Xlibint.h>
+              extern int _XData32(Display *dpy,register _Xconst long *data,unsigned len);
+            ],[
+            ],[
+            have_const_param_xdata32=yes
+            AC_DEFINE(SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32)
+            ])
+            AC_MSG_RESULT($have_const_param_xdata32)
         fi
     fi
 }