From 1b266b0c7ee0611ea459f995d530c60b906e7b56 Mon Sep 17 00:00:00 2001 From: klu2 Date: Thu, 4 Jan 2007 06:33:14 +0000 Subject: [PATCH] Fix building issue for Mac OS git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2167 6f19259b-4bc3-4df7-8a09-765794883524 --- Tools/CCode/Source/GenFvMap/GenFvMap.cpp | 6 ++++++ Tools/CCode/Source/GenFvMap/build.xml | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) 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"> + + - +