]> granicus.if.org Git - graphviz/commitdiff
Remove `_typ_size_t` define and check
authorErwin Janssen <erwinjanssen@outlook.com>
Tue, 11 Oct 2016 15:18:52 +0000 (17:18 +0200)
committerErwin Janssen <erwinjanssen@outlook.com>
Wed, 7 Dec 2016 13:52:37 +0000 (14:52 +0100)
The type `size_t` is part of the C standard library, there is no need
to check and define it.

ast_common.h.in
features/common
lib/cdt/features/common
lib/sfio/features/common
lib/vmalloc/features/common
windows/include/ast_common.h

index a374a66817257922c7025070757fefb12c2e4947..4d283bde37c756a4733ad7ddde7903c7029830c5 100644 (file)
@@ -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  */
 #       include <sys/types.h>
 #       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;
index 837061ed0a00d153c99b89bb5497f90c4ff96d83..22735a667e90bde18d08d04392dd862136128082 100644 (file)
@@ -112,10 +112,6 @@ cat{
        #       include <sys/types.h>
        #       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;
index 0e465f82d1d6165e8fcc0652a064461a14af4113..f7235e6d9ad47f502422e80cbba1a4af3c215366 100644 (file)
@@ -119,10 +119,6 @@ cat{
        #       include <sys/types.h>
        #       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;
index 865b189a4350562ffc6c744bce93ed455dc8ea22..3a6e408279c6a3d350e9335a0b56ff075b6642e4 100644 (file)
@@ -112,10 +112,6 @@ cat{
        #       include <sys/types.h>
        #       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;
index 865b189a4350562ffc6c744bce93ed455dc8ea22..3a6e408279c6a3d350e9335a0b56ff075b6642e4 100644 (file)
@@ -112,10 +112,6 @@ cat{
        #       include <sys/types.h>
        #       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;
index d521988e5888e78cca25b58edeaf8ecd9f56706b..86cfc75bf80c29d68a5b64c339218012e2c7c215 100644 (file)
@@ -33,9 +33,6 @@
 #undef _sys_times
 #define _sys_times     0       /* #include <sys/times.h> 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 */
 
 #      include <sys/types.h>
 #      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