[cvs] bogofilter/src system.h,1.6,1.7
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <m-...@us...> - 2003-07-30 08:23:37
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs1:/tmp/cvs-serv23901/src Modified Files: system.h Log Message: Let autoconf figure the proper substitute for int32_t unless the system defines it. Required for Solaris 2.5, reported by Bob Friesenhahn. Index: system.h =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/system.h,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- system.h 18 Jul 2003 19:29:44 -0000 1.6 +++ system.h 30 Jul 2003 08:23:35 -0000 1.7 @@ -98,6 +98,18 @@ #endif #endif /* HAVE_UINT32_T */ +#ifndef HAVE_INT32_T +#if SIZEOF_SIGNED_LONG == 4 +typedef signed long int32_t; +#elif SIZEOF_SIGNED_INT == 4 +typedef signed int int32_t; +#elif SIZEOF_SIGNED_SHORT == 4 +typedef signed short int32_t; +#else +choke me because we do not know how to define int32_t +#endif +#endif /* HAVE_INT32_T */ + #ifndef HAVE_ULONG typedef unsigned long ulong; #endif |