Otherwise gcc can default to the "sysv_abi" (as opposed to the "ms_abi")
calling convention on X64, causing problems like
<http://sourceforge.net/mailarchive/message.php?msg_id=30356166>.

Contributed-under: TianoCore Contribution Agreement 1.0

Signed-off-by: Laszlo Ersek <ler...@redhat.com>
---
 StdLib/EfiSocketLib/Socket.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/StdLib/EfiSocketLib/Socket.h b/StdLib/EfiSocketLib/Socket.h
index 81f8437..898f5e7 100644
--- a/StdLib/EfiSocketLib/Socket.h
+++ b/StdLib/EfiSocketLib/Socket.h
@@ -362,7 +362,7 @@ typedef struct {
 **/
 typedef
 EFI_STATUS
-(* PFN_NET_CONFIGURE) (
+(EFIAPI *PFN_NET_CONFIGURE) (
   IN VOID * pProtocol,
   IN VOID * pConfigData
   );
@@ -378,7 +378,7 @@ EFI_STATUS
 **/
 typedef
 EFI_STATUS
-(* PFN_NET_IO_START) (
+(EFIAPI *PFN_NET_IO_START) (
   IN VOID * pProtocol,
   IN VOID * pToken
   );
@@ -394,7 +394,7 @@ EFI_STATUS
 **/
 typedef
 EFI_STATUS
-(* PFN_NET_POLL) (
+(EFIAPI *PFN_NET_POLL) (
   IN VOID * pProtocol
   );
 
-- 
1.7.1


------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to