Fix building issue for Mac OS

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2167 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
klu2 2007-01-04 06:33:14 +00:00
parent 6e73f334d9
commit 1b266b0c7e
2 changed files with 9 additions and 1 deletions

View File

@ -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*>
{

View File

@ -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}"