1 /* $NetBSD: eficompiler.h,v 1.2 2018/08/16 18:24:35 jmcneill Exp $ */ 2 3 /*++ 4 5 Copyright (c) 2016 Pete Batard <pete@akeo.ie> 6 7 Module Name: 8 9 eficompiler.h 10 11 Abstract: 12 13 Compiler specific adjustments 14 15 --*/ 16 17 #ifdef _MSC_EXTENSIONS 18 #define EFI_UNUSED 19 #else 20 #define EFI_UNUSED __attribute__((__unused__)) 21 #endif 22 23 #ifdef _MSC_EXTENSIONS 24 #define EFI_ALIGN(x) __declspec(align(x)) 25 #else 26 #define EFI_ALIGN(x) __attribute__((__aligned__(x))) 27 #endif 28 29 /* Also add a catch-all on __attribute__() for MS compilers */ 30 #ifdef _MSC_EXTENSIONS 31 #define __attribute__(x) 32 #endif 33