|
From: <js...@us...> - 2011-11-04 01:09:40
|
Revision: 2393
http://edk2-buildtools.svn.sourceforge.net/edk2-buildtools/?rev=2393&view=rev
Author: jsu1
Date: 2011-11-04 01:09:33 +0000 (Fri, 04 Nov 2011)
Log Message:
-----------
Update GenC.py to allow using C++ for some code
Reviewed-by: gikidy
Reviewed-by: lhauch
Signed-off-by: jsu1
Modified Paths:
--------------
trunk/BaseTools/Source/Python/AutoGen/GenC.py
Modified: trunk/BaseTools/Source/Python/AutoGen/GenC.py
===================================================================
--- trunk/BaseTools/Source/Python/AutoGen/GenC.py 2011-11-04 00:47:35 UTC (rev 2392)
+++ trunk/BaseTools/Source/Python/AutoGen/GenC.py 2011-11-04 01:09:33 UTC (rev 2393)
@@ -310,10 +310,19 @@
#ifndef _${File}_${Guid}
#define _${File}_${Guid}
+#ifdef __cplusplus
+extern "C" {
+#endif
+
""")
gAutoGenHEpilogueString = """
+
+#ifdef __cplusplus
+}
#endif
+
+#endif
"""
## PEI Core Entry Point Templates
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|