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