diff --git a/tools/premake/premake5.lua b/tools/premake/premake5.lua index c406e694..b8f489a0 100644 --- a/tools/premake/premake5.lua +++ b/tools/premake/premake5.lua @@ -368,7 +368,7 @@ function pluginSdkStaticLibProject(projectName, sdkdir, outName, isPluginProject end -- precompiled header - if msbuild and (projNameLower == "plugin_iii" or projNameLower == "plugin_vc" or projNameLower == "plugin_sa") then + if msbuild and (projNameLower == "plugin_iii" or projNameLower == "plugin_vc" or projNameLower == "plugin_sa" or projNameLower == "plugin_iv") then pchheader "stdafx.h" forceincludes "stdafx.h" pchsource (path.getrelative(path.getabsolute("."), sdkdir .. "/shared/stdafx.cpp")) diff --git a/tools/premake/stdafx_template.h b/tools/premake/stdafx_template.h index f8b8db4f..67b534a2 100644 --- a/tools/premake/stdafx_template.h +++ b/tools/premake/stdafx_template.h @@ -16,7 +16,6 @@ #include #include #include - #include #include #include #include // c-string utils @@ -30,5 +29,9 @@ #include #include +#ifdef RW + #include +#endif + GENERATED_LIST #endif \ No newline at end of file