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
parent 2906a9406a
commit ea07722266
No known key found for this signature in database
GPG Key ID: CC4DBBE3299B16F8
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 {