On 03/05/2015 01:47 PM, Michael Andres wrote:
>   [https://gcc.gnu.org/onlinedocs/gcc/Typeof.html]
>   ...
>   If you are writing a header file that must work when included in 
>   ISO C programs, write __typeof__ instead of typeof. 
> 'typeof' is a gcc extension. It's turned off because you're using 'c++ -ansi'.

Ah, I tried adding -std=c++0x ( c++11 wasn't available in this compiler
version) but didn't notice -ansi in the compiler line. Just for
curiosity I tried now using -std=gnu++0x and it works too.

I'll use the "#define typeof __typeof__" solution, which works fine.


Antonio Larrosa
To unsubscribe, e-mail: zypp-devel+unsubscr...@opensuse.org
To contact the owner, e-mail: zypp-devel+ow...@opensuse.org

Reply via email to