Why not using "stdint"

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
Post Reply
User avatar
boyamer
Orc
Posts: 459
Joined: Sat Jan 24, 2009 11:16 am
Location: Italy
x 6

Why not using "stdint"

Post by boyamer »

Hi Developer,
I saw that ogre uses own typedef for primitive types, like uchar, ushort, uint etc, why not include "stdint" and use uin8_t, uint16_t, uint32_t etc, is there any specific motivation or only design choise?

Cheers,
Amer
User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7157
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 534

Re: Why not using "stdint"

Post by Kojack »

Stdint is part of the C99 standard, which isn't supported by Visual Studio.
VS2010 and above do include stdint.h and cstdint, but VS2008 and earlier don't come with it.
Post Reply