diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-01-04 06:33:14 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-01-04 06:33:14 +0000 |
commit | 1b266b0c7ee0611ea459f995d530c60b906e7b56 (patch) | |
tree | 33dbb160b2e0ae2554520cc5e7be0d0d81d35e9b /Tools | |
parent | 6e73f334d9fb98a532e602feee487f7310899060 (diff) | |
download | edk2-platforms-1b266b0c7ee0611ea459f995d530c60b906e7b56.tar.xz |
Fix building issue for Mac OS
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2167 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/CCode/Source/GenFvMap/GenFvMap.cpp | 6 | ||||
-rw-r--r-- | Tools/CCode/Source/GenFvMap/build.xml | 4 |
2 files changed, 9 insertions, 1 deletions
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 T>
class CMemoryLeakChecker : public list<T*>
{
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">
<compilerarg value="${ExtraArgus}" if="ExtraArgus" />
+ <compilerarg value="-x" if="gcc"/>
+ <compilerarg value="c++" if="gcc"/>
<compilerarg value="/EHsc" unless="gcc"/>
<compilerarg value="/Za" unless="gcc"/>
- <compilerarg value="-x c++" if="gcc"/>
+
<fileset dir="${basedir}/${ToolName}"
includes="${FileSet}"
|