|
From: | Carsten Frank |
Subject: | [lwip-devel] [bug #52899] Compile problem |
Date: | Mon, 15 Jan 2018 08:32:42 -0500 (EST) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36 |
URL: <http://savannah.nongnu.org/bugs/?52899> Summary: Compile problem Project: lwIP - A Lightweight TCP/IP stack Submitted by: carstenfrank Submitted on: Mon 15 Jan 2018 01:32:40 PM UTC Category: None Severity: 3 - Normal Item Group: Faulty Behaviour Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: None lwIP version: 2.0.3 _______________________________________________________ Details: Code like: #if LWIP_VERSION >= 0x01050000 bla bla bla #endif Does not compile with 2.0.x. Version 1.4 init.h (Works): #define LWIP_VERSION (LWIP_VERSION_MAJOR << 24 | LWIP_VERSION_MINOR << 16 | \ LWIP_VERSION_REVISION << 8 | LWIP_VERSION_RC) Version 2.0.x init.h (compile problem): /** Provides the version of the stack */ #define LWIP_VERSION (((u32_t)LWIP_VERSION_MAJOR) << 24 | ((u32_t)LWIP_VERSION_MINOR) << 16 | \ ((u32_t)LWIP_VERSION_REVISION) << 8 | ((u32_t)LWIP_VERSION_RC)) Does not work because preprocessor does not know u32_t. Generally the preprocessor can't work with type casts. _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?52899> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |