xext: 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 21:48:21 +01:00
parent 4f7000f620
commit c0757a471f
No known key found for this signature in database
GPG Key ID: CC4DBBE3299B16F8
4 changed files with 12 additions and 13 deletions

View File

@ -1,10 +1,10 @@
/* Prototypes for functions that the DDX must provide */ /* Prototypes for functions that the DDX must provide */
#include <dix-config.h>
#ifndef _DPMSPROC_H_ #ifndef _DPMSPROC_H_
#define _DPMSPROC_H_ #define _DPMSPROC_H_
#include <dix-config.h>
#include "dixstruct.h" #include "dixstruct.h"
extern int DPMSSet(ClientPtr client, int level); extern int DPMSSet(ClientPtr client, int level);

View File

@ -28,21 +28,21 @@ Equipment Corporation.
/* THIS IS NOT AN X PROJECT TEAM SPECIFICATION */ /* THIS IS NOT AN X PROJECT TEAM SPECIFICATION */
/*
* PanoramiX definitions
*/
#include <dix-config.h>
#ifndef _PANORAMIX_H_ #ifndef _PANORAMIX_H_
#define _PANORAMIX_H_ #define _PANORAMIX_H_
#include <dix-config.h>
#include <X11/Xmd.h> #include <X11/Xmd.h>
#include <X11/extensions/panoramiXproto.h> #include <X11/extensions/panoramiXproto.h>
#include "gcstruct.h" #include "gcstruct.h"
#include "dixstruct.h" #include "dixstruct.h"
/*
* PanoramiX definitions
*/
typedef struct _PanoramiXInfo { typedef struct _PanoramiXInfo {
XID id; XID id;
} PanoramiXInfo; } PanoramiXInfo;

View File

@ -1,9 +1,8 @@
#include <dix-config.h>
#ifndef _PANORAMIXSRV_H_ #ifndef _PANORAMIXSRV_H_
#define _PANORAMIXSRV_H_ #define _PANORAMIXSRV_H_
#include <dix-config.h>
#include "panoramiX.h" #include "panoramiX.h"
extern int PanoramiXNumScreens; extern int PanoramiXNumScreens;

View File

@ -24,11 +24,11 @@
* XFree86 Project. * XFree86 Project.
*/ */
#include <dix-config.h>
#ifndef _SLEEPUNTIL_H_ #ifndef _SLEEPUNTIL_H_
#define _SLEEPUNTIL_H_ 1 #define _SLEEPUNTIL_H_ 1
#include <dix-config.h>
#include "dix.h" #include "dix.h"
extern int ClientSleepUntil(ClientPtr client, extern int ClientSleepUntil(ClientPtr client,