dix: move include guards up to wrap the whole file

See: https://gcc.gnu.org/onlinedocs/cppinternals/Guard-Macros.html
Signed-off-by: Mike Gelfand <mikedld@mikedld.com>
This commit is contained in:
Mike Gelfand 2025-06-23 22:22:07 +01:00
parent 8ba1c586a2
commit b9b3f83567
No known key found for this signature in database
GPG Key ID: CC4DBBE3299B16F8
2 changed files with 7 additions and 7 deletions

View File

@ -23,17 +23,17 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
#ifndef DISPATCH_H
#define DISPATCH_H 1
#include <dix-config.h>
/*
* This prototypes the dispatch.c module (except for functions declared in
* global headers), plus related dispatch procedures from devices.c, events.c,
* extension.c, property.c.
*/
#include <dix-config.h>
#ifndef DISPATCH_H
#define DISPATCH_H 1
int ProcAllocColor(ClientPtr /* client */ );
int ProcAllocColorCells(ClientPtr /* client */ );
int ProcAllocColorPlanes(ClientPtr /* client */ );

View File

@ -24,11 +24,11 @@
*
*/
#include <dix-config.h>
#ifndef ENTERLEAVE_H
#define ENTERLEAVE_H
#include <dix-config.h>
#include <dix.h> /* DoFocusEvents() */
extern void DoEnterLeaveEvents(DeviceIntPtr pDev,