From 6e685b9fcc6a3669387a346b5ca5efe5a5b9097c Mon Sep 17 00:00:00 2001 From: eck Date: Wed, 4 Apr 1990 16:21:34 +0000 Subject: [PATCH] definition of ptrdiff_t was wrong --- lang/cem/libcc.ansi/headers/stddef.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/cem/libcc.ansi/headers/stddef.h b/lang/cem/libcc.ansi/headers/stddef.h index 27ab5fd1c..b45f3659c 100644 --- a/lang/cem/libcc.ansi/headers/stddef.h +++ b/lang/cem/libcc.ansi/headers/stddef.h @@ -13,9 +13,9 @@ #define offsetof(type, ident) ((size_t) &(((type *)0)->ident)) -#if _EM_PSIZE == 2 +#if _EM_PSIZE == _EM_WSIZE typedef int ptrdiff_t; /* result of substracting two pointers */ -#elif _EM_PSIZE == 4 +#elif _EM_PSIZE == _EM_LSIZE typedef long ptrdiff_t; /* result of substracting two pointers */ #else #error garbage pointer size -- 2.34.1