X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/89b3af67bb32e691275bf6fa803d1834b2284115..2dced7af2b695f87fe26496a3e73c219b7880cbc:/osfmk/mach/mig.h diff --git a/osfmk/mach/mig.h b/osfmk/mach/mig.h index 72ca0dccb..3d7655076 100644 --- a/osfmk/mach/mig.h +++ b/osfmk/mach/mig.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2000-2007 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * @@ -45,17 +45,25 @@ #if defined(MACH_KERNEL) +#if !defined(__MigTypeCheck) /* Turn MIG type checking on by default for kernel */ #define __MigTypeCheck 1 +#endif + #define __MigKernelSpecificCode 1 #define _MIG_KERNEL_SPECIFIC_CODE_ 1 -/* Otherwise check legacy setting (temporary) */ -#elif defined(TypeCheck) +#elif !defined(__MigTypeCheck) +#if defined(TypeCheck) +/* use legacy setting (temporary) */ #define __MigTypeCheck TypeCheck - -#endif /* defined(TypeCheck) */ +#else +/* default MIG type checking on */ +#define __MigTypeCheck 1 +#endif + +#endif /* !defined(MACH_KERNEL) && !defined(__MigTypeCheck) */ /* * Pack MIG message structs.