Allow files other than C to be included in the projects
authorGed Murphy <gedmurphy@reactos.org>
Mon, 2 Jan 2006 16:43:54 +0000 (16:43 +0000)
committerGed Murphy <gedmurphy@reactos.org>
Mon, 2 Jan 2006 16:43:54 +0000 (16:43 +0000)
Patch by Brezenbak (IRC)

svn path=/trunk/; revision=20529

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