Fixing a msvc7 comping issue
authorMagnus Olsen <magnus@greatlord.com>
Wed, 16 May 2007 21:03:02 +0000 (21:03 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Wed, 16 May 2007 21:03:02 +0000 (21:03 +0000)
svn path=/trunk/; revision=26814

rostests/dxtest/ddraw/ddraw.rbuild
rostests/dxtest/ddraw/ddraw_test.cpp [moved from rostests/dxtest/ddraw/ddraw_test.c with 95% similarity]
rostests/dxtest/ddraw/testlist.cpp

index 5829f25..5077d73 100644 (file)
@@ -7,6 +7,6 @@
        <library>gdi32</library>\r
        <library>ddraw</library>\r
        <library>dxguid</library>\r
-       <file>ddraw_test.c</file>\r
+       <file>ddraw_test.cpp</file>\r
        <file>testlist.cpp</file>\r
 </module>\r
similarity index 95%
rename from rostests/dxtest/ddraw/ddraw_test.c
rename to rostests/dxtest/ddraw/ddraw_test.cpp
index 608a4ac..ba6a03d 100644 (file)
@@ -20,7 +20,7 @@ int main(int argc, char *argv[])
                {
                        for (j = 0; j < NumTests(); j++)
                        {
-                               if (stricmp(argv[i], TestList[j].Test) == 0)
+                               if (_stricmp(argv[i], TestList[j].Test) == 0)
                                {
                                        passed = 0;
                                        failed = 0;
index 84b85d7..32f2ae9 100644 (file)
@@ -19,7 +19,7 @@ TEST TestList[] =
 };
 
 /* The function that gives us the number of tests */
-extern "C" INT NumTests(void)
+INT NumTests(void)
 {
        return sizeof(TestList) / sizeof(TEST);
 }