Update of /cvsroot/javabdd/JavaBDD
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29471
Modified Files:
buddy_jni.c
Log Message:
change #if to if() to accomodate cygwin gcc 3.4.4's obnoxious definition of CLOCKS_PER_SEC as "(clock_t) 1000".
Index: buddy_jni.c
===================================================================
RCS file: /cvsroot/javabdd/JavaBDD/buddy_jni.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** buddy_jni.c 21 May 2005 08:43:21 -0000 1.33
--- buddy_jni.c 12 Jul 2005 01:34:00 -0000 1.34
***************
*** 149,157 ****
if (fid) {
long t = s->time;
! #if CLOCKS_PER_SEC < 1000
! t = t * 1000 / CLOCKS_PER_SEC;
! #else
! t /= (CLOCKS_PER_SEC/1000);
! #endif
(*jnienv)->SetLongField(jnienv, gc_obj, fid, t);
}
--- 149,158 ----
if (fid) {
long t = s->time;
! if (CLOCKS_PER_SEC < 1000) {
! t = t * 1000 / CLOCKS_PER_SEC;
! }
! else {
! t /= (CLOCKS_PER_SEC/1000);
! }
(*jnienv)->SetLongField(jnienv, gc_obj, fid, t);
}
***************
*** 159,167 ****
if (fid) {
long t = s->sumtime;
! #if CLOCKS_PER_SEC < 1000
! t = t * 1000 / CLOCKS_PER_SEC;
! #else
! t /= (CLOCKS_PER_SEC/1000);
! #endif
(*jnienv)->SetLongField(jnienv, gc_obj, fid, t);
}
--- 160,169 ----
if (fid) {
long t = s->sumtime;
! if (CLOCKS_PER_SEC < 1000) {
! t = t * 1000 / CLOCKS_PER_SEC;
! }
! else {
! t /= (CLOCKS_PER_SEC/1000);
! }
(*jnienv)->SetLongField(jnienv, gc_obj, fid, t);
}
|