Revision: 9117
          http://sourceforge.net/p/playerstage/svn/9117
Author:   jpgr87
Date:     2013-01-05 23:41:58 +0000 (Sat, 05 Jan 2013)
Log Message:
-----------
Move timespec definition above first use

clock_gettime relies on the timespec structure definition.  If timespec
and clock_gettime are both undefined, then replace.h would use timespec
before declaration.  This commit fixes the order.

Modified Paths:
--------------
    code/player/trunk/replace/replace.h

Modified: code/player/trunk/replace/replace.h
===================================================================
--- code/player/trunk/replace/replace.h 2013-01-05 23:36:46 UTC (rev 9116)
+++ code/player/trunk/replace/replace.h 2013-01-05 23:41:58 UTC (rev 9117)
@@ -117,12 +117,6 @@
 PLAYERREPLACE_EXPORT unsigned long compressBound (unsigned long sourceLen);
 #endif // HAVE_COMPRESSBOUND
 
-#if !HAVE_CLOCK_GETTIME
-  #include <time.h>
-  #define CLOCK_REALTIME 0
-PLAYERREPLACE_EXPORT int clock_gettime(int clk_id, struct timespec *tp);
-#endif // !HAVE_CLOCK_GETTIME
-
 #if !HAVE_STRUCT_TIMESPEC
   struct timespec
   {
@@ -133,6 +127,12 @@
   #define HAVE_STRUCT_TIMESPEC 1
 #endif
 
+#if !HAVE_CLOCK_GETTIME
+  #include <time.h>
+  #define CLOCK_REALTIME 0
+PLAYERREPLACE_EXPORT int clock_gettime(int clk_id, struct timespec *tp);
+#endif // !HAVE_CLOCK_GETTIME
+
 #if !HAVE_USLEEP
 PLAYERREPLACE_EXPORT int usleep (int usec);
 #endif

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. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
Playerstage-commit mailing list
Playerstage-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to