X-Git-Url: https://perl5.git.perl.org/metaconfig.git/blobdiff_plain/0f00356b07a535269188fbb0326491dde15dfb84..a8383192ec0f6a76542d6b5169b1ac8f794bcd41:/U/typedefs/sizesize.U diff --git a/U/typedefs/sizesize.U b/U/typedefs/sizesize.U index 1da42a5..095a77c 100644 --- a/U/typedefs/sizesize.U +++ b/U/typedefs/sizesize.U @@ -1,13 +1,13 @@ ?RCS: ?RCS: Copyright (c) 1999, Jarkko Hietaniemi -?RCS: +?RCS: ?RCS: You may redistribute only under the terms of the Artistic Licence, ?RCS: as specified in the README file that comes with the distribution. ?RCS: You may reuse parts of this distribution only within the terms of ?RCS: that same Artistic Licence; a copy of which may be found at the root ?RCS: of the source tree for dist 3.0. ?RCS: -?MAKE:sizesize: Myread Typedef sizetype Compile run +?MAKE:sizesize: Myread Typedef sizetype Compile run i_stdlib ?MAKE: -pick add $@ %< ?S:sizesize: ?S: This variable contains the size of a sizetype in bytes. @@ -15,19 +15,24 @@ ?C:Size_t_size: ?C: This symbol holds the size of a Size_t in bytes. ?C:. -?H:#define Size_t_size $sizesize /* */ +?H:#define Size_t_size $sizesize /**/ ?H:. ?T:yyy zzz -?LINT: set sizesize +?F:!try +: Check size of size echo " " case "$sizetype" in *_t) zzz="$sizetype" ;; *) zzz="filesize" ;; esac -echo "Checking the size of $zzz..." >&4 +echo "Checking the size of $zzz..." >&4 cat > try.c < #include +#$i_stdlib I_STDLIB +#ifdef I_STDLIB +#include +#endif int main() { printf("%d\n", (int)sizeof($sizetype)); exit(0);