| 1 |
/*++ |
| 2 |
|
| 3 |
Copyright (c) 2016 Pete Batard <[email protected]> |
| 4 |
|
| 5 |
Module Name: |
| 6 |
|
| 7 |
eficompiler.h |
| 8 |
|
| 9 |
Abstract: |
| 10 |
|
| 11 |
Compiler specific adjustments |
| 12 |
|
| 13 |
--*/ |
| 14 |
|
| 15 |
#ifdef _MSC_EXTENSIONS |
| 16 |
#define EFI_UNUSED |
| 17 |
#else |
| 18 |
#define EFI_UNUSED __attribute__((__unused__)) |
| 19 |
#endif |
| 20 |
|
| 21 |
#ifdef _MSC_EXTENSIONS |
| 22 |
#define ALIGN(x) __declspec(align(x)) |
| 23 |
#else |
| 24 |
#define ALIGN(x) __attribute__((__aligned__(x))) |
| 25 |
#endif |
| 26 |
|
| 27 |
/* Also add a catch-all on __attribute__() for MS compilers */ |
| 28 |
#ifdef _MSC_EXTENSIONS |
| 29 |
#define __attribute__(x) |
| 30 |
#endif |