mi: 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:38:45 +01:00 • committed by Enrico Weigelt
commit 770c21c947
4 changed files with 11 additions and 11 deletions

View file

@ -71,13 +71,13 @@ SOFTWARE.
* authorization from the copyright holder(s) and author(s).
*/
#ifndef MIINITEXT_H
#define MIINITEXT_H
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#ifndef MIINITEXT_H
#define MIINITEXT_H
void ListStaticExtensions(void);
#endif /* MIINITEXT_H */

View file

@ -1,11 +1,10 @@
#ifndef __MIOVERLAY_H
#define __MIOVERLAY_H
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#ifndef __MIOVERLAY_H
#define __MIOVERLAY_H
typedef void (*miOverlayTransFunc) (ScreenPtr, int, BoxPtr);
typedef Bool (*miOverlayInOverlayFunc) (WindowPtr);

View file

@ -26,12 +26,13 @@ from The Open Group.
*/
#ifndef SCANFILLINCLUDED
#define SCANFILLINCLUDED
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#ifndef SCANFILLINCLUDED
#define SCANFILLINCLUDED
/*
* scanfill.h
*

View file

@ -26,13 +26,13 @@ from The Open Group.
*/
#ifndef MIVALIDATE_H
#define MIVALIDATE_H
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#ifndef MIVALIDATE_H
#define MIVALIDATE_H
#include "regionstr.h"
typedef union _Validate {