[PD-cvs] externals/hcs stat.c,1.2,1.3

Hans-Christoph Steiner eighthave at users.sourceforge.net
Tue Jun 13 16:24:06 CEST 2006


Update of /cvsroot/pure-data/externals/hcs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20597

Modified Files:
	stat.c 
Log Message:
oops, got the POSIX macro switched around, works now

Index: stat.c
===================================================================
RCS file: /cvsroot/pure-data/externals/hcs/stat.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** stat.c	13 Jun 2006 01:28:48 -0000	1.2
--- stat.c	13 Jun 2006 14:24:04 -0000	1.3
***************
*** 195,198 ****
--- 195,205 ----
  		/* 86400 seconds == 24 hours == 1 day */
  #ifdef _POSIX_C_SOURCE
+ 		add_float_to_output(x, (t_float) (stat_buffer.st_atime / 86400));
+ 		add_float_to_output(x, (t_float) (stat_buffer.st_atime % 86400));
+ 		add_float_to_output(x, (t_float) (stat_buffer.st_mtime / 86400));
+ 		add_float_to_output(x, (t_float) (stat_buffer.st_mtime % 86400));
+ 		add_float_to_output(x, (t_float) (stat_buffer.st_ctime / 86400));
+ 		add_float_to_output(x, (t_float) (stat_buffer.st_ctime % 86400));
+ #else
  		add_float_to_output(x, 
  				 (t_float) (stat_buffer.st_atimespec.tv_sec / 86400));
***************
*** 207,217 ****
  		add_float_to_output(x, 
  				 (t_float) (stat_buffer.st_ctimespec.tv_sec % 86400));
- #else
- 		add_float_to_output(x, (t_float) (stat_buffer.st_atime / 86400));
- 		add_float_to_output(x, (t_float) (stat_buffer.st_atime % 86400));
- 		add_float_to_output(x, (t_float) (stat_buffer.st_mtime / 86400));
- 		add_float_to_output(x, (t_float) (stat_buffer.st_mtime % 86400));
- 		add_float_to_output(x, (t_float) (stat_buffer.st_ctime / 86400));
- 		add_float_to_output(x, (t_float) (stat_buffer.st_ctime % 86400));
  #endif /* _POSIX_C_SOURCE */
  		outlet_anything(x->x_data_outlet,x->x_filename,
--- 214,217 ----





More information about the Pd-cvs mailing list