From axis-c-dev-return-21193-apmail-ws-axis-c-dev-archive=ws.apache.org@ws.apache.org Mon Dec 14 11:09:41 2009 Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 75453 invoked from network); 14 Dec 2009 11:09:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Dec 2009 11:09:41 -0000 Received: (qmail 77002 invoked by uid 500); 14 Dec 2009 11:09:41 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 76914 invoked by uid 500); 14 Dec 2009 11:09:40 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 76905 invoked by uid 99); 14 Dec 2009 11:09:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Dec 2009 11:09:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Dec 2009 11:09:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 201D0234C498 for ; Mon, 14 Dec 2009 03:09:18 -0800 (PST) Message-ID: <1878397352.1260788958116.JavaMail.jira@brutus> Date: Mon, 14 Dec 2009 11:09:18 +0000 (UTC) From: "S.Uthaiyashankar (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Commented: (AXIS2C-1325) _WIN32 should be used instead of WIN32 In-Reply-To: <1315881400.1231333604725.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2C-1325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790098#action_12790098 ] S.Uthaiyashankar commented on AXIS2C-1325: ------------------------------------------ Please refer: http://msdn.microsoft.com/en-us/library/aa489554.aspx We have to change all WIN32 to _WIN32. Have to compile with 64bit compiler and fix it. > _WIN32 should be used instead of WIN32 > -------------------------------------- > > Key: AXIS2C-1325 > URL: https://issues.apache.org/jira/browse/AXIS2C-1325 > Project: Axis2-C > Issue Type: Bug > Components: build system (Windows) > Affects Versions: 1.5.0 > Environment: WIN64 > Reporter: Patrick van Beem > Assignee: S.Uthaiyashankar > Priority: Minor > Fix For: 1.7.0 > > Original Estimate: 1h > Remaining Estimate: 1h > > In several places, the WIN32 macro is used to check if we're running on Windows or not. This macro is defined in the make file (and usually by VS in the any WIN32 project too). > However, when users are using the library in a 64-bit windows environment, WIN32 is not defined, so the tests for the WIN32 macro in the axis include files in the distribution, fail (when they should not, because we are in a windows environment). > We should either use _WIN32 instead (which is always defined by the MS compiler in both 32-bit and 64-bit) or use something like: > #if defined(WIN32) || defined(WIN64) > to check for windows. I prefer _WIN32, because that's implicit defined while WIN32 and WIN64 must be defined explicit. > This change should be made at least in the public includes (since WIN32 is defined in the makefile, the change would have no effect internally). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.