[PATCH input-acecad 1/7] config: remove AH_TOP autoheader statement
Peter Hutterer
peter.hutterer at who-t.net
Tue Apr 13 20:00:10 PDT 2010
On Mon, Apr 12, 2010 at 05:09:58PM -0400, xorg-devel-bounces at lists.x.org wrote:
> From: Gaetan Nadon <memsize at videotron.ca>
>
> The generated config.h does not need to include xorg-server.h
> for the content it provides.
> Add #include <xorg-server.h> in .[hc] files as needed.
>
> Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
> ---
> configure.ac | 2 --
> src/acecad.c | 1 +
> 2 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index d71f9d7..fd7d1cc 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -45,8 +45,6 @@ AC_DISABLE_STATIC
> AC_PROG_LIBTOOL
> AC_PROG_CC
>
> -AH_TOP([#include "xorg-server.h"])
> -
> AC_ARG_WITH(xorg-module-dir,
> AC_HELP_STRING([--with-xorg-module-dir=DIR],
> [Default xorg module directory [[default=$libdir/xorg/modules]]]),
> diff --git a/src/acecad.c b/src/acecad.c
> index 61e4c21..a30dc0d 100644
> --- a/src/acecad.c
> +++ b/src/acecad.c
> @@ -26,6 +26,7 @@
>
> #include "config.h"
>
> +#include <xorg-server.h>
> #include <xorgVersion.h>
> #define XORG_VERSION_BOTCHED XORG_VERSION_NUMERIC(1,4,0,0,0)
> #if XORG_VERSION_CURRENT >= XORG_VERSION_BOTCHED
> --
> 1.6.0.4
Acked-by: Peter Hutterer <peter.hutterer at who-t.net>
for the series except the comment on 5/7. feel free to push once that's amended.
Cheers,
Peter
More information about the xorg-devel
mailing list