From: klu2 Date: Thu, 4 Jan 2007 06:33:14 +0000 (+0000) Subject: Fix building issue for Mac OS X-Git-Tag: edk2-stable201903~23710 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=1b266b0c7ee0611ea459f995d530c60b906e7b56;ds=sidebyside Fix building issue for Mac OS git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2167 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/Tools/CCode/Source/GenFvMap/GenFvMap.cpp b/Tools/CCode/Source/GenFvMap/GenFvMap.cpp index 1bd7b38f54..881251f03e 100644 --- a/Tools/CCode/Source/GenFvMap/GenFvMap.cpp +++ b/Tools/CCode/Source/GenFvMap/GenFvMap.cpp @@ -24,6 +24,12 @@ using namespace std; typedef UINT64 ulonglong_t; +#ifdef __GNUC__ +#if __STDC_VERSION__ < 199901L +#define __FUNCTION__ __FILE__ +#endif +#endif + template class CMemoryLeakChecker : public list { diff --git a/Tools/CCode/Source/GenFvMap/build.xml b/Tools/CCode/Source/GenFvMap/build.xml index 6d87631e8c..0d05b58e87 100644 --- a/Tools/CCode/Source/GenFvMap/build.xml +++ b/Tools/CCode/Source/GenFvMap/build.xml @@ -51,9 +51,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. debug="true" optimize="speed"> + + - +