New patches: [Turn off _SERVER64 and change Modifier to CUInt thedward@antejentacular.org**20070329221748 _SERVER64 should be defined only for compiling X server code, so we shouldn't use it here. (Thanks for the heads up, Chris) Changed Modifier to be a CUInt. This shouldn't require any changes to X11-Extras. ] { hunk ./Graphics/X11/Types.hsc 1269 -type Modifier = Mask +type Modifier = CUInt hunk ./X11.buildinfo.in 5 -cc-options: @X_CFLAGS@ @XSERVER64@ +cc-options: @X_CFLAGS@ hunk ./configure.ac 47 - - AC_CHECK_SIZEOF([unsigned long]) - if test "$ac_cv_sizeof_unsigned_long" = 8; then - AC_SUBST(XSERVER64,["-D_XSERVER64"]) - fi } Context: [(X11.Graphics) More Int -> CInt cleanup ; Will break existing programs. thedward@antejentacular.org**20070329010533 This patch takes care of the rest of the Int usages. These changes break API compatibility. Existing programs will likely require (minor[1]) changes to compile once these changes are applied. [1]Mostly just switching from Int to CInt or using fromIntegral as appropriate. ] [Changing Int to CInt and building with -D_XSERVER64 (when appropriate) thedward@antejentacular.org**20070328062453 I went through and weeded out all the Ints I could find, replacing them with CInts, adding fromIntegral calls as necessary. I modified configure.ac and X11.buildinfo.in to support detecting 64-bit systems. (inspired by the test in the xorg build). All these changes seem to make X11 much more useful on 64-bit systems. Most importantly, I've got xmonad up and running beautifully. ] [README about building from darcs Ross Paterson **20070218110201] [Warning police: Remove redundant export/import sven.panne@aedion.de**20070106162533] [bump version to 1.2 (added thread-related functions) Simon Marlow **20070105153426] [XNextEvent should be *safe*, for correct behaviour with threads Simon Marlow **20070105152519] [add initThreads, lockDisplay, unlockDisplay (threads support) Simon Marlow **20070105152456] [also compile Graphics.X11 (it was missing) Simon Marlow **20070105151541] [make it work inplace Simon Marlow **20070105144721] [Extended the set of Xutil.h macros which should better be functions sven.panne@aedion.de**20061124175235] [Try to get a prototype (and not a macro) with recent X11 headers sven.panne@aedion.de**20061124174842] [undef XDestroyImage instead of defining XUTIL_DEFINE_FUNCTIONS Ross Paterson **20061108142602 Comment in the file: Xutil.h overrides some functions with macros. In recent versions of X this can be turned off with #define XUTIL_DEFINE_FUNCTIONS before the #include, but this doesn't work with older versions. As a workaround, we undef the macros here. Note that this is only safe for functions with return type int. ] [re-export Graphics.X11.Xlib.Image Ross Paterson **20061106085901] [haddock tweaks Ross Paterson **20061106085832] [Graphics.X11.Xlib.Image doesn't need hsc2hs or -fglasgow-exts Ross Paterson **20061106084512] [The X11 image functions should not be macros sven.panne@aedion.de**20061105112751] [add Graphics/X11/Xlib/Image.hsc mistakenly omitted from last patch Ross Paterson **20061103143538] [fill in Image routines in X11 (#982 from Frederik Eaton) Ross Paterson **20061103103559] [note CPP extension Ross Paterson **20060908233707] [includes -> install-includes Ross Paterson **20060829123744] [exclude Setup.hs even if not building package Ross Paterson **20060825222701] [increment version number Ross Paterson **20060825162304] [exclude Setup.hs from build Ross Paterson **20060824183533] [add boilerplate Setup.hs Ross Paterson **20060824115019] [add --enable/disable-x11 flag to configure Simon Marlow **20060316162346 submitted by Duncan Coutts. ] [TAG Initial conversion from CVS complete John Goerzen **20060112154138] Patch bundle hash: 5f8e908a606855ec7b540f8d574ac320086017c0