mi: add/fix include guards where missing/broken

Signed-off-by: Mike Gelfand <mikedld@mikedld.com>
This commit is contained in:
Mike Gelfand 2025-06-24 22:50:19 +01:00 committed by Enrico Weigelt
parent f5e00916aa
commit 32b26ccf9e
5 changed files with 29 additions and 9 deletions

View File

@ -1,4 +1,3 @@
/* /*
Copyright 1994, 1998 The Open Group Copyright 1994, 1998 The Open Group
@ -26,6 +25,7 @@ in this Software without prior written authorization from The Open Group.
*/ */
#ifndef MILINE_H #ifndef MILINE_H
#define MILINE_H
#include "screenint.h" #include "screenint.h"
#include "privates.h" #include "privates.h"

View File

@ -78,6 +78,9 @@ from The Open Group.
* drawn (as with the even-odd rule). * drawn (as with the even-odd rule).
*/ */
#ifndef XSERVER_MIPOLY_H
#define XSERVER_MIPOLY_H
/* /*
* for the winding number rule * for the winding number rule
*/ */
@ -172,3 +175,5 @@ typedef struct _ScanLineListBlock {
pAET = pAET->next; \ pAET = pAET->next; \
} \ } \
} }
#endif /* XSERVER_MIPOLY_H */

View File

@ -1,11 +1,3 @@
/*
* misprite.h
*
* software-sprite/sprite drawing interface spec
*
* mi versions of these routines exist.
*/
/* /*
Copyright 1989, 1998 The Open Group Copyright 1989, 1998 The Open Group
@ -31,6 +23,17 @@ used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group. in this Software without prior written authorization from The Open Group.
*/ */
/*
* misprite.h
*
* software-sprite/sprite drawing interface spec
*
* mi versions of these routines exist.
*/
#ifndef XSERVER_MISPRITE_H
#define XSERVER_MISPRITE_H
Bool miSpriteInitialize(ScreenPtr pScreen, miPointerScreenFuncPtr screenFuncs); Bool miSpriteInitialize(ScreenPtr pScreen, miPointerScreenFuncPtr screenFuncs);
Bool miDCRealizeCursor(ScreenPtr pScreen, CursorPtr pCursor); Bool miDCRealizeCursor(ScreenPtr pScreen, CursorPtr pCursor);
@ -44,3 +47,5 @@ Bool miDCRestoreUnderCursor(DeviceIntPtr pDev, ScreenPtr pScreen,
int x, int y, int w, int h); int x, int y, int w, int h);
Bool miDCDeviceInitialize(DeviceIntPtr pDev, ScreenPtr pScreen); Bool miDCDeviceInitialize(DeviceIntPtr pDev, ScreenPtr pScreen);
void miDCDeviceCleanup(DeviceIntPtr pDev, ScreenPtr pScreen); void miDCDeviceCleanup(DeviceIntPtr pDev, ScreenPtr pScreen);
#endif /* XSERVER_MISPRITE_H */

View File

@ -28,6 +28,9 @@ from The Open Group.
/* Author: Keith Packard, MIT X Consortium */ /* Author: Keith Packard, MIT X Consortium */
#ifndef XSERVER_MIWIDELINE_H
#define XSERVER_MIWIDELINE_H
#include "mifpoly.h" /* for ICEIL */ #include "mifpoly.h" /* for ICEIL */
/* /*
@ -91,3 +94,5 @@ typedef struct _LineFace {
ValidateGC (pDrawable, pGC); \ ValidateGC (pDrawable, pGC); \
} \ } \
} }
#endif /* XSERVER_MIWIDELINE_H */

View File

@ -24,6 +24,9 @@ in this Software without prior written authorization from The Open Group.
********************************************************/ ********************************************************/
#ifndef XSERVER_MIZERARC_H
#define XSERVER_MIZERARC_H
typedef struct { typedef struct {
int x; int x;
int y; int y;
@ -122,3 +125,5 @@ extern _X_EXPORT Bool miZeroArcSetup(xArc * /*arc */ ,
miZeroArcRec * /*info */ , miZeroArcRec * /*info */ ,
Bool /*ok360 */ Bool /*ok360 */
); );
#endif /* XSERVER_MIZERARC_H */