From eb9661fef9f59587f898371f97a0952ac14d125f Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Tue, 10 Jul 2012 02:02:51 +0100 Subject: [PATCH] Make extension.h self-contained, remove C++ externs externsion.h required bits from Xfuncproto.h and dixstruct.h, but included neither; fix that. It also had _XFUNCPROTOBEGIN and _XFUNCPROTOEND wrappers, which is a bit pointless for a server-only library, as it's only needed for C++. Signed-off-by: Daniel Stone Reviewed-by: Cyril Brulebois Reviewed-by: Jamey Sharp Reviewed-by: Peter Hutterer Signed-off-by: Peter Hutterer Signed-off-by: Keith Packard --- include/extension.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/extension.h b/include/extension.h index c7f51b9d1..f0560d7ef 100644 --- a/include/extension.h +++ b/include/extension.h @@ -47,7 +47,9 @@ SOFTWARE. #ifndef EXTENSION_H #define EXTENSION_H -_XFUNCPROTOBEGIN +#include + +#include "dixstruct.h" extern _X_EXPORT unsigned short StandardMinorOpcode(ClientPtr /*client */ ); @@ -60,5 +62,4 @@ extern _X_EXPORT void InitExtensions(int argc, char **argv); extern _X_EXPORT void CloseDownExtensions(void); -_XFUNCPROTOEND #endif /* EXTENSION_H */