U
Uno
Hello ng,
I hope this message finds you all well. It's been a while since I've
had any real time to devote to programming and usenet, and while I'll
hope to stay busy as a handyman through the winter, I'll take it as the
silver lining that I can pursue avocation and hobby otherwise.
Keith posted this source in comp.std.c:
$ gcc -Wall -Wextra e2.c -o out
$ ./out
float_t is not a macro
$ cat e2.c
#include <math.h>
#include <stdio.h>
int main(void)
{
#ifdef float_t
puts("float_t is a macro");
#else
puts("float_t is not a macro");
#endif
return 0;
}
// gcc -Wall -Wextra e2.c -o out
$
1) I'm looking for general comments on the above. including whether you
get different output.
2) Can a conforming implementation render the other possibility?
Thanks for your comment,
and cheers,
I hope this message finds you all well. It's been a while since I've
had any real time to devote to programming and usenet, and while I'll
hope to stay busy as a handyman through the winter, I'll take it as the
silver lining that I can pursue avocation and hobby otherwise.
Keith posted this source in comp.std.c:
$ gcc -Wall -Wextra e2.c -o out
$ ./out
float_t is not a macro
$ cat e2.c
#include <math.h>
#include <stdio.h>
int main(void)
{
#ifdef float_t
puts("float_t is a macro");
#else
puts("float_t is not a macro");
#endif
return 0;
}
// gcc -Wall -Wextra e2.c -o out
$
1) I'm looking for general comments on the above. including whether you
get different output.
2) Can a conforming implementation render the other possibility?
Thanks for your comment,
and cheers,