According the module type to include the header file.
Fixes: https://bugzilla.tianocore.org/show_bug.cgi?id=867
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
AutoGenH.Append(gAutoGenHCppPrologueString)\r
if Info.AutoGenVersion >= 0x00010005:\r
# header files includes\r
- AutoGenH.Append("#include <%s>\n" % gBasicHeaderFile)\r
- if Info.ModuleType in gModuleTypeHeaderFile \\r
- and gModuleTypeHeaderFile[Info.ModuleType][0] != gBasicHeaderFile:\r
+ if Info.ModuleType in gModuleTypeHeaderFile:\r
AutoGenH.Append("#include <%s>\n" % gModuleTypeHeaderFile[Info.ModuleType][0])\r
#\r
# if either PcdLib in [LibraryClasses] sections or there exist Pcd section, add PcdLib.h \r