Portable use of uint64_t
From: Kasper Dupont (kasperd_at_daimi.au.dk)
Date: 04/12/05
- Previous message: Måns Rullgård: "Re: GTK or QT ??"
- Next in thread: Måns Rullgård: "Re: Portable use of uint64_t"
- Reply: Måns Rullgård: "Re: Portable use of uint64_t"
- Reply: William Ahern: "Re: Portable use of uint64_t"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 12 Apr 2005 14:21:15 +0200
I have an application that needs to use uint64_t. On
Linux I can include <stdint.h> and then it works fine.
But I would like this code to be as portable as
possible. I found that on IRIX and Solaris there is
no <stdint.h>. If I remove the include line, the code
compiles and works as intended.
But without <stdint.h> the code no longer compiles on
Linux. So how do I write the code such that it works
in both cases?
I don't want to generate header files and Make files,
I want to keep it simple and just write the .c file in
a portable way.
Another problem I ran into is the fact that I use
/dev/urandom to generate random bytes. That doesn't
exist on IRIX, is there a portable way to generate
random bytes?
-- Kasper Dupont
- Previous message: Måns Rullgård: "Re: GTK or QT ??"
- Next in thread: Måns Rullgård: "Re: Portable use of uint64_t"
- Reply: Måns Rullgård: "Re: Portable use of uint64_t"
- Reply: William Ahern: "Re: Portable use of uint64_t"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|