]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Ebc/ProcessorBind.h
Allow EFIAPI to be defined on the compiler command line.
[mirror_edk2.git] / MdePkg / Include / Ebc / ProcessorBind.h
index c4c168d773b2f21a5c974dbf2cd8abad4d8663cc..4cd89a94d34b6ee972eb2d49a7c7ec5eb0a2564a 100644 (file)
@@ -4,7 +4,7 @@
   We currently only have one EBC complier so there may be some Intel compiler\r
   specific functions in this file.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>                                                         \r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>                                                         \r
   All rights reserved. This program and the accompanying materials                          \r
   are licensed and made available under the terms and conditions of the BSD License         \r
   which accompanies this distribution.  The full text of the license may be found at        \r
@@ -113,7 +113,13 @@ typedef unsigned long         UINTN;
 /// use the correct C calling convention. All protocol member functions and\r
 /// EFI intrinsics are required to modify their member functions with EFIAPI.\r
 ///\r
+#ifdef EFIAPI\r
+  ///\r
+  /// If EFIAPI is already defined, then we use that definition.\r
+  ///\r
+#else\r
 #define EFIAPI    \r
+#endif\r
 \r
 ///\r
 /// The Microsoft* C compiler can removed references to unreferenced data items\r