not to redefine main.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140148
138bc75d-0d04-0410-961f-
82ee72b054a4
+2008-09-09 Andreas Schwab <schwab@suse.de>
+
+ * acinclude.m4 (GLIBCXX_CHECK_STANDARD_LAYOUT): Fix compile check
+ not to redefine main.
+
2008-09-07 Paolo Carlini <paolo.carlini@oracle.com>
* acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Check wcstoimax and
private:
b& operator=(const b&);
b(const b&);
- };
-
- int main()
- {
- b tst1 = { false };
- return 0;
- }],,
- [ac_standard_layout=yes], [ac_standard_layout=no])
+ };],
+ [b tst1 = { false };],
+ [ac_standard_layout=yes], [ac_standard_layout=no])
CXXFLAGS="$ac_save_CXXFLAGS"
AC_LANG_RESTORE
b& operator=(const b&);
b(const b&);
};
-
- int main()
- {
- b tst1 = { false };
- return 0;
- }
int
main ()
{
-
+b tst1 = { false };
;
return 0;
}