My product is being migrating from GCC 4.4.1 to 4.8.1 and while compiling the existing code with newer tool chain, I am seeing below error : In file included from /vobs/optnet_comms/comms_applications/3rdparty/appweb/current/src/mpr/mprLib.c:5:0: /vobs/optnet_comms/comms_applications/3rdparty/appweb/current/src/mpr/mpr.h:207:74: error: missing binary operator before token "(" #elif (LINUX || ME_BSD_LIKE) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0))
Looks like a dup of bug 36453.
(In reply to Andrew Pinski from comment #1) > Looks like a dup of bug 36453. Hi Andrew, yes I did check that and modified the code like below : #elif (LINUX || ME_BSD_LIKE) && defined(KERNEL_VERSION) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) but no help. Am I doing something wrong here?
The PR suggests you write #elif (LINUX || ME_BSD_LIKE) && defined(KERNEL_VERSION) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) ... #endif *** This bug has been marked as a duplicate of bug 36453 ***