site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=irDvrYPw0/k7Ov1f3a9G0RSmj9cXjzVV9Y69F4pZMZ1DrxpmN0XZrx1X9S3FegtUCKrnfVHUL7pOEU6JmyQiHNM4DG4Cniu5F5XE8HpmKY8F/heGXFZUI+w6htA4e3WzekVCiVH8/91act+GbqjLPjVcQs7ZD5mA9LR4+9x6AIk=; Hi there, I'm trying to build a hello world driver on a G5 using gcc 4.0. Wondering what the solution(s) has been to the following error. Cheers Dave /* We need a way to get rid of compiler warnings when we cast from */ /* a 64 bit value to an address that is 32 bits. */ /* We know at this point the cast is harmless but sometime in */ /* the future it may not be. */ /* When size of an int is no longer equal to size of uintptr_t then */ /* the compile will fail and we know we need to fix our cast. */ #include <stdint.h> #ifndef __CAST_DOWN_CHECK #define __CAST_DOWN_CHECK typedef char __NEED_TO_CHANGE_CAST_DOWN[ sizeof(uintptr_t) == sizeof(int) ? 0 : -1 ]; #define CAST_DOWN( type, addr ) ( ((type)((uintptr_t) (addr))) ) #endif /* __CAST_DOWN_CHECK */ ____________________________________________________ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at http://ca.toolbar.yahoo.com. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Dave B. Sharp