|
From: Andre R. <and...@us...> - 2005-01-14 11:42:45
|
Update of /cvsroot/frontierkernel/Frontier/Common/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9498/Common/source Modified Files: FastTimes.c Log Message: Fixed system includes for Mach-O compilation with Xcode. The required headers are already included via frontier.h. Also removed some CodeWarrior compiler warnings about empty loop bodies. Index: FastTimes.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/FastTimes.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** FastTimes.c 13 Jan 2005 23:54:18 -0000 1.1 --- FastTimes.c 14 Jan 2005 11:42:20 -0000 1.2 *************** *** 13,21 **** the public domain. The author makes no warranty as to fitness or stability */ ! #include <Gestalt.h> ! #include <LowMem.h> ! #include <CodeFragments.h> ! #include <DriverServices.h> ! #include <Timer.h> #include "FastTimes.h" --- 13,23 ---- the public domain. The author makes no warranty as to fitness or stability */ ! #include "frontier.h" ! #include "standard.h" ! ! #if !FRONTIER_FRAMEWORK_INCLUDES ! #include <DriverServices.h> ! #include <Timer.h> ! #endif #include "FastTimes.h" *************** *** 145,151 **** /* Wait for the beginning of the very next tick */ #if TARGET_API_MAC_CARBON ! for(tick = TickCount() + 1; tick > TickCount(); ); #else ! for(tick = MyLMGetTicks() + 1; tick > MyLMGetTicks(); ); #endif /* TARGET_API_MAC_CARBON */ --- 147,155 ---- /* Wait for the beginning of the very next tick */ #if TARGET_API_MAC_CARBON ! for(tick = TickCount() + 1; tick > TickCount(); ) ! ; #else ! for(tick = MyLMGetTicks() + 1; tick > MyLMGetTicks(); ) ! ; #endif /* TARGET_API_MAC_CARBON */ *************** *** 157,163 **** /* Wait for the exact 60th tick to roll over */ #if TARGET_API_MAC_CARBON ! while(tick + 60 > TickCount()); #else ! while(tick + 60 > MyLMGetTicks()); #endif /* TARGET_API_MAC_CARBON */ --- 161,169 ---- /* Wait for the exact 60th tick to roll over */ #if TARGET_API_MAC_CARBON ! while(tick + 60 > TickCount()) ! ; #else ! while(tick + 60 > MyLMGetTicks()) ! ; #endif /* TARGET_API_MAC_CARBON */ |