Hi Roger,

Roger Mason <[email protected]> skribis:

> ./reader-config.h:21:13: error: redefinition of typedef 'scm_t_wchar'
> ./reader-config.h:21:13: note: previous declaration of 'scm_t_wchar'

Indeed, <reader-config.h> lacked a multiple-inclusion guard, which
commit b015d3221f37ac5b7e4028802a17a1c97678544c fixes.

Interestingly, the problem would show up with GCC 4.5, but not with
4.6/4.7:

--8<---------------cut here---------------start------------->8---
$ cat > t.c
typedef int foo;
typedef int foo;

$ gcc -fsyntax-only t.c

$ gcc --version
gcc (GCC) 4.6.2
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


$ /nix/store/x62i24v7cpcwksfpkcyibpskh9wx2xa5-gcc-wrapper-4.5.1/bin/gcc 
-fsyntax-only t.c
t.c:2:13: error: redefinition of typedef ‘foo’
t.c:1:13: note: previous declaration of ‘foo’ was here

$ /nix/store/0gnxm79i35ps5y0brwr7nwg12bz6anpa-gcc-debug-wrapper-4.7.0/bin/gcc 
-fsyntax-only t.c
--8<---------------cut here---------------end--------------->8---

Thanks!

Ludo’.

_______________________________________________
Skribilo-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/skribilo-users

Reply via email to