[PD-cvs] externals/grill/flext/source flthr.cpp,1.25,1.26

Thomas Grill xovo at users.sourceforge.net
Sat Dec 18 06:01:15 CET 2004


Update of /cvsroot/pure-data/externals/grill/flext/source
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4934/source

Modified Files:
	flthr.cpp 
Log Message:
updated build system for linux
updated make system for BCC
build system for flext-based externals
updated build system
add xcode project
comply to build system


Index: flthr.cpp
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/source/flthr.cpp,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** flthr.cpp	24 Aug 2004 02:34:30 -0000	1.25
--- flthr.cpp	18 Dec 2004 05:01:11 -0000	1.26
***************
*** 605,614 ****
  }
  
! bool flext::ThrCond::TimedWait(double ftime) 
  { 
  	timespec tm; 
  #if FLEXT_OS == FLEXT_OS_WIN && FLEXT_OSAPI == FLEXT_OSAPI_WIN_NATIVE
  	_timeb tmb;
  	_ftime(&tmb);
  	tm.tv_nsec = tmb.millitm*1000000;
  	tm.tv_sec = tmb.time; 
--- 605,619 ----
  }
  
! bool flext::ThrCond::TimedWait(double ftm) 
  { 
  	timespec tm; 
  #if FLEXT_OS == FLEXT_OS_WIN && FLEXT_OSAPI == FLEXT_OSAPI_WIN_NATIVE
+ #ifdef _MSC_VER
  	_timeb tmb;
  	_ftime(&tmb);
+ #else
+ 	timeb tmb;
+ 	ftime(&tmb);
+ #endif
  	tm.tv_nsec = tmb.millitm*1000000;
  	tm.tv_sec = tmb.time; 
***************
*** 624,630 ****
  #endif
  
! 	tm.tv_nsec += (long)((ftime-(long)ftime)*1.e9);
  	long nns = tm.tv_nsec%1000000000;
! 	tm.tv_sec += (long)ftime+(tm.tv_nsec-nns)/1000000000; 
  	tm.tv_nsec = nns;
  
--- 629,635 ----
  #endif
  
! 	tm.tv_nsec += (long)((ftm-(long)ftm)*1.e9);
  	long nns = tm.tv_nsec%1000000000;
! 	tm.tv_sec += (long)ftm+(tm.tv_nsec-nns)/1000000000; 
  	tm.tv_nsec = nns;
  





More information about the Pd-cvs mailing list