Branko Čibej <br...@wandisco.com> writes:

> However, the 'main' function is explicitly defined to have exactly two
> forms:
>
>     int main(void); // or int main(); in C++
>
> and
>
>     int main(int argc, char *argv[]);
>
> The distinction is unimportant as far as the purpose of he configure
> test is concerned; but a pedantic compiler may warn, or even refuse to
> accept, the form you use in the test.

I have no problem with your change but I don't believe a compiler would
reject 'int main()'.  The standard explicitly allows declarations
"equivalent" to the two declarations you give and I believe 'int main()'
qualifies, particularly since some of the examples in the standard use
'int main()'.

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*

Reply via email to