diff options
author | Matthieu Herrb <matthieu.herrb@laas.fr> | 2011-02-28 21:57:44 +0100 |
---|---|---|
committer | Matthieu Herrb <matthieu.herrb@laas.fr> | 2011-02-28 21:57:44 +0100 |
commit | 029109fcb286a1e3965e2caeab044d53df350f64 (patch) | |
tree | d9a58a1d7aa6418152de2373d9a09bb280b9d5eb | |
parent | 6a4d422f0f0d17f92de06fd006dbb67c613f299f (diff) |
Don't use Xalloc & friends with recent X servers.
-rw-r--r-- | src/ws.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -36,6 +36,17 @@ #include <mipointer.h> #include <extinit.h> +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) > 10 +#undef xalloc +#undef xcalloc + +#define xcalloc calloc +#define xalloc malloc +#define Xcalloc calloc +#define Xalloc malloc +#define Xfree free +#endif + #include "ws.h" #ifdef HAVE_PROPERTIES |