From mint-bounce@lists.fishpool.fi Mon Jan 28 05:33:18 2008 X-Virus-Scanned: amavisd-new at demon.co.uk Subject: [MiNT] mintlib problem From: Alan Hourihane To: mint Content-Type: text/plain Date: Mon, 28 Jan 2008 10:27:23 +0000 Message-Id: <1201516043.9694.23.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: alanh@fairlite.demon.co.uk Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Back to MIN/MAX definitions. Anyone try compiling this ?? #define MAX(a,b) \ ({ \ __typeof__ (a) _a = (a); \ __typeof__ (b) _b = (b); \ _a > _b ? _a : _b; \ }) enum { VALUE = MAX (1000, 10) }; main() { printf("%d\n",VALUE); } Even adding __extension__ doesn't work. Alan.