miext: 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:40:50 +01:00
parent ea07722266
commit 824ca40d42
No known key found for this signature in database
GPG Key ID: CC4DBBE3299B16F8
8 changed files with 24 additions and 23 deletions

View File

@ -20,13 +20,13 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef _DAMAGE_H_
#define _DAMAGE_H_
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#ifndef _DAMAGE_H_
#define _DAMAGE_H_
typedef struct _damage *DamagePtr;
typedef enum _damageReportLevel {

View File

@ -20,13 +20,13 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef _DAMAGESTR_H_
#define _DAMAGESTR_H_
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#ifndef _DAMAGESTR_H_
#define _DAMAGESTR_H_
#include "damage.h"
#include "gcstruct.h"
#include "privates.h"

View File

@ -28,13 +28,13 @@
* use or other dealings in this Software without prior written authorization.
*/
#ifndef _ROOTLESS_H
#define _ROOTLESS_H
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#ifndef _ROOTLESS_H
#define _ROOTLESS_H
#include "rootlessConfig.h"
#include "mi.h"
#include "gcstruct.h"

View File

@ -28,13 +28,14 @@
* use or other dealings in this Software without prior written authorization.
*/
#ifndef _ROOTLESSCOMMON_H
#define _ROOTLESSCOMMON_H
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#include <stdint.h>
#ifndef _ROOTLESSCOMMON_H
#define _ROOTLESSCOMMON_H
#include "misc.h"
#include "rootless.h"

View File

@ -27,13 +27,13 @@
* use or other dealings in this Software without prior written authorization.
*/
#ifndef _ROOTLESSCONFIG_H
#define _ROOTLESSCONFIG_H
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#ifndef _ROOTLESSCONFIG_H
#define _ROOTLESSCONFIG_H
/*# define ROOTLESSDEBUG*/
#define ROOTLESS_PROTECT_ALPHA TRUE

View File

@ -27,13 +27,13 @@
* use or other dealings in this Software without prior written authorization.
*/
#ifndef _ROOTLESSWINDOW_H
#define _ROOTLESSWINDOW_H
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#ifndef _ROOTLESSWINDOW_H
#define _ROOTLESSWINDOW_H
#include "dix/screen_hooks_priv.h"
#include "rootlessCommon.h"

View File

@ -21,13 +21,13 @@
* DEALINGS IN THE SOFTWARE.
*/
#ifndef _MISYNC_H_
#define _MISYNC_H_
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#ifndef _MISYNC_H_
#define _MISYNC_H_
typedef struct _SyncObject SyncObject;
typedef struct _SyncFence SyncFence;
typedef struct _SyncTrigger SyncTrigger;

View File

@ -21,13 +21,13 @@
* DEALINGS IN THE SOFTWARE.
*/
#ifndef _MISYNCSTR_H_
#define _MISYNCSTR_H_
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#ifndef _MISYNCSTR_H_
#define _MISYNCSTR_H_
#include <stdint.h>
#include "dix.h"
#include "misync.h"