From: Erwin Janssen Date: Tue, 11 Oct 2016 15:18:52 +0000 (+0200) Subject: Remove `_typ_size_t` define and check X-Git-Tag: 2.42.0~229^2~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d928a75fdac2a92091a1e06fee2a3520f3825e18;p=graphviz Remove `_typ_size_t` define and check The type `size_t` is part of the C standard library, there is no need to check and define it. --- diff --git a/ast_common.h.in b/ast_common.h.in index a374a6681..4d283bde3 100644 --- a/ast_common.h.in +++ b/ast_common.h.in @@ -48,7 +48,6 @@ #endif /* FIXME - need proper config test for these */ -#define _typ_size_t 1 /* size_t is a type */ #define _typ_ssize_t 1 /* ssize_t is a type */ #define _typ_long_double 1 /* long double is a type */ #define _proto_stdc 1 /* Standard-C prototypes ok */ @@ -103,10 +102,6 @@ # include # endif #endif -#if !_typ_size_t -# define _typ_size_t 1 -typedef int size_t; -#endif #if !_typ_ssize_t # define _typ_ssize_t 1 typedef int ssize_t; diff --git a/features/common b/features/common index 837061ed0..22735a667 100644 --- a/features/common +++ b/features/common @@ -112,10 +112,6 @@ cat{ # include # endif #endif - #if !_typ_size_t - # define _typ_size_t 1 - typedef int size_t; - #endif #if !_typ_ssize_t # define _typ_ssize_t 1 typedef int ssize_t; diff --git a/lib/cdt/features/common b/lib/cdt/features/common index 0e465f82d..f7235e6d9 100644 --- a/lib/cdt/features/common +++ b/lib/cdt/features/common @@ -119,10 +119,6 @@ cat{ # include # endif #endif - #if !_typ_size_t - # define _typ_size_t 1 - typedef int size_t; - #endif #if !_typ_ssize_t # define _typ_ssize_t 1 typedef int ssize_t; diff --git a/lib/sfio/features/common b/lib/sfio/features/common index 865b189a4..3a6e40827 100644 --- a/lib/sfio/features/common +++ b/lib/sfio/features/common @@ -112,10 +112,6 @@ cat{ # include # endif #endif - #if !_typ_size_t - # define _typ_size_t 1 - typedef int size_t; - #endif #if !_typ_ssize_t # define _typ_ssize_t 1 typedef int ssize_t; diff --git a/lib/vmalloc/features/common b/lib/vmalloc/features/common index 865b189a4..3a6e40827 100644 --- a/lib/vmalloc/features/common +++ b/lib/vmalloc/features/common @@ -112,10 +112,6 @@ cat{ # include # endif #endif - #if !_typ_size_t - # define _typ_size_t 1 - typedef int size_t; - #endif #if !_typ_ssize_t # define _typ_ssize_t 1 typedef int ssize_t; diff --git a/windows/include/ast_common.h b/windows/include/ast_common.h index d521988e5..86cfc75bf 100644 --- a/windows/include/ast_common.h +++ b/windows/include/ast_common.h @@ -33,9 +33,6 @@ #undef _sys_times #define _sys_times 0 /* #include ok */ -#undef _typ_size_t -#define _typ_size_t 1 /* size_t is a type */ - #undef _typ_ssize_t #define _typ_ssize_t 0 /* ssize_t is a type */ @@ -87,11 +84,6 @@ # include # endif #endif -#if !_typ_size_t -# undef _typ_size_t -# define _typ_size_t 1 -typedef int size_t; -#endif #if !_typ_ssize_t # undef _typ_ssize_t # define _typ_ssize_t 1