Ludovic Rousseau wrote on 03/28/06 11:16 PM:
On 29/03/06, Karsten Ohme <[EMAIL PROTECTED]> wrote:
Hello,

Hi,

MSCULong32 is defined as unsigned long. Maybe this can produce some
problems. But long is 64 bit on 64 bit platforms. What problems can be
expected?

E.g. Solaris defines uint32_t to specify a concrete bit size. A windows
long stays 32 buit. Linux shoudl have an uint32 type.

What are the usual solutions for this?

Are there similar problems for int?

I guess the best solution would be to use uint32_t as defined in
inttypes.h [1]. This header file shall include inttypes.h [2] but this
file does not exists on Solaris AFAIK.

Solaris 10 has stdint.h, but previous releases didn't. It's another
ISO/IEC 9899:1999 addition, I guess...

    ~Iain



I have no idea if these types also exists on Windows or if we should
expect other portability issues.

Bye,

[1] http://www.opengroup.org/onlinepubs/009695399/basedefs/inttypes.h.html
[2] http://www.opengroup.org/onlinepubs/009695399/basedefs/stdint.h.html

--
  Dr. Ludovic Rousseau

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to