Revision: 9118 http://sourceforge.net/p/playerstage/svn/9118 Author: jpgr87 Date: 2013-01-06 23:17:01 +0000 (Sun, 06 Jan 2013) Log Message: ----------- More Windows build fixes
Fixes for some issues building on Windows with mingw, Visual Studio 2008 and 2010. Modified Paths: -------------- code/player/trunk/client_libs/libplayerc++/test/test_coopobject.cc code/player/trunk/replace/replace.h code/player/trunk/utils/logsplitter/logsplitter.c Modified: code/player/trunk/client_libs/libplayerc++/test/test_coopobject.cc =================================================================== --- code/player/trunk/client_libs/libplayerc++/test/test_coopobject.cc 2013-01-05 23:41:58 UTC (rev 9117) +++ code/player/trunk/client_libs/libplayerc++/test/test_coopobject.cc 2013-01-06 23:17:01 UTC (rev 9118) @@ -28,6 +28,10 @@ #include <unistd.h> #endif +#if !HAVE_USLEEP + #include <replace.h> +#endif + int test_coopobject(PlayerClient* client, int index) { TEST("CoopObject"); Modified: code/player/trunk/replace/replace.h =================================================================== --- code/player/trunk/replace/replace.h 2013-01-05 23:41:58 UTC (rev 9117) +++ code/player/trunk/replace/replace.h 2013-01-06 23:17:01 UTC (rev 9118) @@ -117,7 +117,7 @@ PLAYERREPLACE_EXPORT unsigned long compressBound (unsigned long sourceLen); #endif // HAVE_COMPRESSBOUND -#if !HAVE_STRUCT_TIMESPEC +#ifndef HAVE_STRUCT_TIMESPEC struct timespec { long tv_sec; Modified: code/player/trunk/utils/logsplitter/logsplitter.c =================================================================== --- code/player/trunk/utils/logsplitter/logsplitter.c 2013-01-05 23:41:58 UTC (rev 9117) +++ code/player/trunk/utils/logsplitter/logsplitter.c 2013-01-06 23:17:01 UTC (rev 9118) @@ -123,7 +123,7 @@ fflush (rest); // Truncate the remainings from the source file -#if defined (WIN32) +#if defined (WIN32) && !defined (__MINGW32__) _chsize_s (_fileno (input), currentPos - before); #else ftruncate (fileno (input), currentPos - before); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_123012 _______________________________________________ Playerstage-commit mailing list Playerstage-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/playerstage-commit