Windows follows LLP64 standard in 64 bit machine. Type Platform Size int 32 bit windows 32 bit long 32 bit windows 32 bit size_t 32 bit windows 32 bit pointer 32 bit windows 32 bit
int 64 bit windows 32 bit long 64 bit windows 32 bit size_t 64 bit windows 64 bit pointer 64 bit windows 64 bit In Linux long is 64 bit in 64 bit architecture while in Windows long is 32 bit in 64 bit architecture. So when we compile the bacula.dll project in visual studio after turning on 64 bit portability issues, We get data loss warnings for conversions from size_t to int, long pointer to int, long (for eg. In smartall.c) We could successfully backup and restore using the ported 64 bit windows bacula client. We are still unsure whether these warnings will cause some serious problems later. Similarly we removed the _USE_32BIT_TIME_T preprocessor for 64 bit windows architecture. We are also unsure whether this will cause any problems. Regards, Riyas -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kern Sibbald Sent: Wednesday, July 30, 2008 2:49 PM To: [email protected] Cc: Martin Simmons Subject: Re: [Bacula-devel] Bacula Windows Client 64bit build. On Wednesday 30 July 2008 10:57:08 Martin Simmons wrote: > >>>>> On Wed, 30 Jul 2008 09:07:24 +0200, Kern Sibbald said: > > > > - In general there is nothing wrong with referencing "int"; on a 64 bit > > system "int" is 64 bits. > > I hope Bacula doesn't assume that, because "int" is very likely to be 32 > bits on 64 bit platforms! The "long" type is usually 64 bits, but beware > that it is 32 bits on 64 bit Windows. No, we make no assumptions about the size of int other than it is at least 32 bits. Where size really counts, as you surely know, we use our own platform independent definitions such as int32_t, uint32_t, int64_t, uint64_t, boffset_t, ... ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Bacula-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-devel ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Bacula-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-devel
