--- include/platform.h.orig	2005-06-30 18:22:01.000000000 -0700
+++ include/platform.h	2005-06-30 18:22:12.000000000 -0700
@@ -505,6 +505,7 @@
 typedef unsigned int uint;
 #endif
 #if defined(HPUX_OS) || defined(CYGWIN_OS) || defined(MAC_OS) || defined(BSD_BASED_OS) || defined(_WIN32)
+#undef ulong
 typedef unsigned long ulong;
 #endif
 
