[xiph-commits] r8708 - trunk/oggdsf/src/tests/testCMMLParser

ozone at motherfish-iii.xiph.org ozone at motherfish-iii.xiph.org
Sun Jan 9 15:45:07 PST 2005


Author: ozone
Date: 2005-01-09 15:45:07 -0800 (Sun, 09 Jan 2005)
New Revision: 8708

Modified:
   trunk/oggdsf/src/tests/testCMMLParser/stdafx.h
   trunk/oggdsf/src/tests/testCMMLParser/testCMMLParser.cpp
Log:
oggdsf:
 * Portability fixes for testCMMLParser



Modified: trunk/oggdsf/src/tests/testCMMLParser/stdafx.h
===================================================================
--- trunk/oggdsf/src/tests/testCMMLParser/stdafx.h	2005-01-09 23:34:31 UTC (rev 8707)
+++ trunk/oggdsf/src/tests/testCMMLParser/stdafx.h	2005-01-09 23:45:07 UTC (rev 8708)
@@ -7,6 +7,9 @@
 
 
 #include <iostream>
-#include <tchar.h>
 
+#ifdef WIN32
+# include <tchar.h>
+#endif
+
 // TODO: reference additional headers your program requires here

Modified: trunk/oggdsf/src/tests/testCMMLParser/testCMMLParser.cpp
===================================================================
--- trunk/oggdsf/src/tests/testCMMLParser/testCMMLParser.cpp	2005-01-09 23:34:31 UTC (rev 8707)
+++ trunk/oggdsf/src/tests/testCMMLParser/testCMMLParser.cpp	2005-01-09 23:45:07 UTC (rev 8708)
@@ -164,7 +164,11 @@
 
 }
 
+#ifdef WIN32
 int __cdecl _tmain(int argc, _TCHAR* argv[])
+#else
+int main(int, char **)
+#endif
 {
 	//Valid minimal
 	wstring head_1 = L"<head><title>Types of fish</title><meta name=\"Producer\" content=\"Joe Ordinary\"/><meta name=\"DC.Author\" content=\"Joe's friend\"/></head>";



More information about the commits mailing list