Ops.

Pls any suggestion how to check with macro the sizeof size_t ?
Should I check the max value of a size_t to infer its size ?
I cannot find how to.

M

On Thu, 21 May 2020 at 14:08, <arn...@skeeve.com> wrote:

> This isn't valid C. The preprocessor doesn't know about sizeof.
>
> Arnold
>
> Massimo Sala <massimo.sala...@gmail.com> wrote:
>
> > Hi
> >
> > Compiling the attached sample, tcc bails out with "error: function
> pointer
> > expected"
> > Pls, how can I fix ?
> > Best regards, Massimo
> >
> > #include <stdio.h>
> > #include <stdlib.h>
> > #include <string.h>
> >
> > int main()
> > {
> > printf("ciao\n");
> > #if sizeof(size_t) == 64
> > printf("big boss\n");
> > #endif
> > return 0;
> > }
>
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to