Re: [Alephmodular-devel] 0.3 current status
Status: Pre-Alpha
Brought to you by:
brefin
From: Michael A. <mdm...@ya...> - 2003-01-09 03:33:33
|
--- Dietrich Epp <die...@zd...> wrote: > > On Wednesday, January 8, 2003, at 02:06 , Br'fin > wrote: > > > > > On Wednesday, January 8, 2003, at 04:58 PM, > Michael Adams wrote: > > > >> Just a question, what header is the deffinition > for > >> int16 and int32 comming from? Is it a standard > header > >> from the host environment or one we control? If > the > >> former, I'm wondering if all platforms have this > >> header. > >> > >> Michael D. Adams > >> mdm...@ya... > >> > > The definition of int16 and int32 and related > values are within the > > cstypes.h file that we picked up from AlephOne. We > control the file. > > Though it will need appropriate platform > definitions for each platform. > > Wouldn't it be easier, rather than make appropriate > definitions for each > platform, just include <stdint.h>? That file has > typedefs for > everything (portably), and #define could take care > of the rest (or > search & replace). > Unfortunately, stdint.h doesn't exist on all platforms, most notably MSVC++7. I would love it if something like this existed on all platforms (anyone on the ANSI committy listening), but I have yet to find it. You may want to look at the way SDL handles this problem. Basicly it includes stdint.h (or the equivalent) on platforms that have it, but also defines int16 et. al. on the platforms that don't. Longing for the day all platform live in peace and perfect harmony, I remain, Michael D. Adams mdm...@ya... __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |