From: Alex James <theracermaster@gmail.com>
To: edk2-devel@lists.01.org
Subject: [PATCH v2] BaseTools/PcdValueCommon: Fix build with XCODE5
Date: Thu, 28 Dec 2017 20:59:59 -0600 [thread overview]
Message-ID: <3e0c832e5b7d71fd76ec84da996042857d6d9f2a.1514515803.git.theracermaster@gmail.com> (raw)
Use the correct UINT64 format specifier when building on macOS. This is
needed to fix building with XCODE5.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Alex James <theracermaster@gmail.com>
---
Notes:
v2:
- Change ifdef to fix GCC build failure [Liming]
BaseTools/Source/C/Common/PcdValueCommon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/BaseTools/Source/C/Common/PcdValueCommon.c b/BaseTools/Source/C/Common/PcdValueCommon.c
index 6ca0994744..1b7b48c125 100644
--- a/BaseTools/Source/C/Common/PcdValueCommon.c
+++ b/BaseTools/Source/C/Common/PcdValueCommon.c
@@ -266,7 +266,7 @@ Returns:
sprintf(PcdList[Index].Value, "0x%08x", (UINT32)(Value & 0xffffffff));
break;
case PcdDataTypeUint64:
-#ifdef __GNUC__
+#if defined(__GNUC__) && !defined(__APPLE__)
sprintf(PcdList[Index].Value, "0x%016lx", Value);
#else
sprintf(PcdList[Index].Value, "0x%016llx", Value);
--
2.15.1
next reply other threads:[~2017-12-29 2:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-29 2:59 Alex James [this message]
2017-12-29 15:08 ` [PATCH v2] BaseTools/PcdValueCommon: Fix build with XCODE5 Gao, Liming
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3e0c832e5b7d71fd76ec84da996042857d6d9f2a.1514515803.git.theracermaster@gmail.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox