NULL is not yet defined because this header is sometimes included before stdio.h or stddef.h - rather than change a bazillion places where the header is included, I'll just use 0 instead.

This commit is contained in:
sjbaker
2007-03-06 18:14:37 +00:00
parent a4a3474fb5
commit 3c1ba0023b

View File

@@ -75,7 +75,7 @@ class btClock
__asm __volatile__( "mftb %0" : "=r" (newTime) : : "memory");
mStartTime = newTime;
#else
gettimeofday(&mStartTime, NULL);
gettimeofday(&mStartTime, 0);
#endif
#endif
@@ -132,7 +132,7 @@ class btClock
#else
struct timeval currentTime;
gettimeofday(&currentTime, NULL);
gettimeofday(&currentTime, 0);
return (currentTime.tv_sec - mStartTime.tv_sec) * 1000 +
(currentTime.tv_usec - mStartTime.tv_usec) / 1000;
#endif //__PPU__
@@ -190,7 +190,7 @@ class btClock
#else
struct timeval currentTime;
gettimeofday(&currentTime, NULL);
gettimeofday(&currentTime, 0);
return (currentTime.tv_sec - mStartTime.tv_sec) * 1000000 +
(currentTime.tv_usec - mStartTime.tv_usec);
#endif//__PPU__