Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 76329 invoked from network); 21 Sep 2007 13:39:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Sep 2007 13:39:25 -0000 Received: (qmail 13073 invoked by uid 500); 21 Sep 2007 13:39:15 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 13032 invoked by uid 500); 21 Sep 2007 13:39:14 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Delivered-To: moderator for dev@apr.apache.org Received: (qmail 35728 invoked by uid 99); 21 Sep 2007 13:12:25 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gringocroco@gmail.com designates 209.85.146.180 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=rXqfrUdp46jF32o754JfLzBlbuByHxZGet9QWFEZP0Y=; b=ULzvi59GpUG4GhI4frkul18FnNX0tsOa36QKT16+4zSeAXq/iSZpJju/DjzGCF1VPptCe2Rb6zMHzWFbopOfMJJZRBY9PCUEpsFP97z/GsOMktGO8Cz7G7H5hN36b+L2HtMIjxHxSJgY9dem/9ytUyBs8dd3nOaHfXDsbppT4AU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=XXcPaKsZbUCZQrmQJr4jX3d624P4K+XGjoq1GjtVbCu9kb+jNzF7NRdmIM2xa92U+LlzMkxyEI3XHSmcl4IPCwWQTKYwcnCsk23E4nYLkx+NoDjL1CddUspzJBypLFdI2c4wq67ZPMUqJT+iXXybsh0cWnZDWohvNNhQBmYcbtU= Message-ID: <4d45da050709210612g7dcd1416x2cac256a63c2e1fa@mail.gmail.com> Date: Fri, 21 Sep 2007 16:12:03 +0300 From: "Lucian Adrian Grijincu" Reply-To: lucian.grijincu@gmail.com Sender: gringocroco@gmail.com To: "APR Developer List" Subject: APR_CHECK_SIZEOF_EXTENDED issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: b5a01f6d9d150ddc X-Virus-Checked: Checked by ClamAV on apache.org The current APR_CHECK_SIZEOF_EXTENDED includes stdio.h before doing anything specified by the macro caller. dnl APR_CHECK_SIZEOF_EXTENDED(INCLUDES, TYPE [, CROSS_SIZE]) [snip] [AC_TRY_RUN([#include $1 main() { FILE *f=fopen("conftestval", "w"); [snip] Say someone needs to do something like this: APR_CHECK_SIZEOF_EXTENDED(#define _FILE_OFFSET_BITS=64 #include , off_t [, whatever]) or whatever #define that may change the default behaviour and consequencs of including stdio.h first. Wouldn't it be better if we switch to something like: [snip] [AC_TRY_RUN([$1 #include main() { FILE *f=fopen("conftestval", "w"); [snip] and permit this kind of behaviour too? -- Lucian