Allow files other than C to be included in the projects
[reactos.git] / reactos / tools / rbuild / backend / msvc / vcprojmaker.cpp
index e73fad1..c39f840 100644 (file)
@@ -116,10 +116,10 @@ MSVCBackend::_generate_vcproj ( const Module& module )
                        // TODO FIXME - do we want the full path of the file here?\r
                        string file = string(".") + &files[i]->name[vcproj_path.size()];\r
 \r
-                       if ( !stricmp ( Right(file,2).c_str(), ".c" ) )\r
-                               source_files.push_back ( file );\r
                        if ( !stricmp ( Right(file,3).c_str(), ".rc" ) )\r
                                resource_files.push_back ( file );\r
+            else\r
+                               source_files.push_back ( file );\r
                }\r
                const vector<Include*>& incs = data.includes;\r
                for ( i = 0; i < incs.size(); i++ )\r