openbsd-ports/games/micropolis/patches/patch-src_tclx_src_tclxint_h
2017-05-09 13:01:42 +00:00

24 lines
604 B
Plaintext

$OpenBSD: patch-src_tclx_src_tclxint_h,v 1.4 2017/05/09 13:01:42 espie Exp $
Index: src/tclx/src/tclxint.h
--- src/tclx/src/tclxint.h.orig
+++ src/tclx/src/tclxint.h
@@ -83,16 +83,9 @@
struct tm *gmtime ();
struct tm *localtime ();
-#ifndef MAXINT
-# define BITSPERBYTE 8
-# define BITS(type) (BITSPERBYTE * (int)sizeof(type))
-# define HIBITI ((unsigned int)(1 << BITS(int) - 1))
-# define MAXINT ((int)(~HIBITI))
-#endif
+#define MAXINT INT_MAX
-#ifndef MININT
-# define MININT (-MAXINT)-1
-#endif
+#define MININT INT_MIN
#ifndef TRUE
# define TRUE (1)