---
title: magic
framework: kernel
role: symbol
role_heading: Instance Property
path: kernel/mach_header/1525759-magic
---

# magic

An integer containing a value identifying this file as a 32-bit Mach-O file. Use the constant MH_MAGIC if the file is intended for use on a CPU with the same endianness as the computer on which the compiler is running. The constant MH_CIGAM can be used when the byte ordering scheme of the target machine is the reverse of the host CPU.

## Declaration

```occ
uint32_t magic;
```
