Added "extern int __make_me_compile_correctly;" for R8 modules because the AutoGen...
authorjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Thu, 13 Mar 2008 09:02:09 +0000 (09:02 +0000)
committerjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Thu, 13 Mar 2008 09:02:09 +0000 (09:02 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1066 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/AutoGen/GenC.py

index d4bfea0..7526baa 100644 (file)
@@ -1604,6 +1604,10 @@ def CreateHeaderCode(Info, AutoGenC, AutoGenH):
         # Publish the CallerId Guid\r
         #\r
         AutoGenC.Append('\nGLOBAL_REMOVE_IF_UNREFERENCED GUID gEfiCallerIdGuid = %s;\n' % GuidStringToGuidStructureString(Info.Guid))\r
+    else:\r
+        # R8 modules my have nothing in the AutoGen.c. So it needs following line\r
+        AutoGenC.Append('\nextern int __make_me_compile_correctly;\n\n')\r
+\r
 \r
 ## Create common code for header file\r
 #\r