[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeciv-dev
Subject:    Re: [Freeciv-Dev] (PR#39926) build error on ZETA/BeOS with gcc
From:       "William Allen Simpson" <william.allen.simpson () domain ! hid>
Date:       2007-11-28 16:34:11
Message-ID: x474DA327.9080602 () domain ! hid
[Download RAW message or body]


<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39926 >

For portability, we should re-write this section.

   http://www.gnu.org/software/gcc/bugs.html

   Cannot use preprocessor directive in macro arguments.

     Versions of GCC prior to 3.3 did not allow you to put #ifdef (or any
     other preprocessor directive) inside the arguments....

     However, this kind of code is not portable. It is "undefined behavior"
     according to the C standard; ...




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic