From 3c1ba0023bcb116467bcdcc7162a42313d190359 Mon Sep 17 00:00:00 2001 From: sjbaker Date: Tue, 6 Mar 2007 18:14:37 +0000 Subject: [PATCH] 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. --- src/LinearMath/btQuickprof.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/LinearMath/btQuickprof.h b/src/LinearMath/btQuickprof.h index 3f9076b93..eafd0a0eb 100644 --- a/src/LinearMath/btQuickprof.h +++ b/src/LinearMath/btQuickprof.h @@ -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(¤tTime, NULL); + gettimeofday(¤tTime, 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(¤tTime, NULL); + gettimeofday(¤tTime, 0); return (currentTime.tv_sec - mStartTime.tv_sec) * 1000000 + (currentTime.tv_usec - mStartTime.tv_usec); #endif//__PPU__