[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wcalc



On Sun, Aug 01, 2004 at 10:01:01PM -0500, Marco Peereboom wrote:
> Does anyone have a port of wcalc (the cli version)?

Whew, that was almost too easy.  Here's the diff.  Download source
for v1.7, unpack, apply the patch, and ./configure && make && make
install.  Don't know if this is fixed enough to commit to ports,
but it seems to work for me.  YMMV, esp. on non-32-bit platforms.



--- calculator.c        Mon Dec 29 02:24:53 2003
+++ calculator.c        Sun Aug  1 23:27:41 2004
@@ -18,6 +18,9 @@
 #define kbw_rand random
 #endif

+#include <sys/limits.h>
+#define UINT32_MAX UINT_MAX
+
 #if STDC_HEADERS
 # include <string.h>   /* for memset() */
 #else



-- 
====================================
=> Aaron G. Suen
   Sunday, August 1, 2004
   11:20:28 PM EDT (UTC-0400)
http://suen.ed.psu.edu/~asuen/
====================================