Commit 1e2fc154 authored by Mihai Moldovan's avatar Mihai Moldovan

nx-X11/programs/Xserver/Xext/shape.c: avoid pulling in Xlib in legacy mode via…

nx-X11/programs/Xserver/Xext/shape.c: avoid pulling in Xlib in legacy mode via the _SHAPE_SERVER_ macro.
parent 3abdb996
......@@ -42,6 +42,13 @@ in this Software without prior written authorization from The Open Group.
#include "resource.h"
#include "opaque.h"
#ifdef LEGACY_XEXT_PROTO
/*
* The legacy shape proto implementation used to distinguish between
* the server and client side via the _SHAPE_SERVER_ macro.
* If not set, shape.h pulls in Xlib, which will lead to compile
* errors in a server environment.
*/
#define _SHAPE_SERVER_
#include <X11/extensions/shapestr.h>
#else
#include <X11/extensions/shapeproto.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment