=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/io/bsave.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -p -r1.15 -r1.16 --- OpenXM_contrib2/asir2000/io/bsave.c 2006/08/09 02:40:47 1.15 +++ OpenXM_contrib2/asir2000/io/bsave.c 2009/03/16 16:43:03 1.16 @@ -44,7 +44,7 @@ * OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. - * $OpenXM: OpenXM_contrib2/asir2000/io/bsave.c,v 1.14 2004/12/10 07:36:35 noro Exp $ + * $OpenXM: OpenXM_contrib2/asir2000/io/bsave.c,v 1.15 2006/08/09 02:40:47 noro Exp $ */ /* saveXXX must not use GC_malloc(), GC_malloc_atomic(). */ @@ -128,12 +128,12 @@ void savebf(FILE *s,BF p) write_int(s,&sign); -#if defined(LONG_IS_32BIT) +#if SIZEOF_LONG == 4 write_int(s,(int *)&zeroval); /* expo>>32 is always 0 */ write_int(s,(int *)&expo); write_int(s,&len); write_intarray(s,(int *)&z[2],len); -#elif defined(LONG_IS_64BIT) +#elif SIZEOF_LONG == 8 t = expo>>32; write_int(s,(int *)&t); t = expo&0xffffffff; write_int(s,&t); t = 2*len; write_int(s,&t);