C++ ubyte ?!

Matt Graham mhgraham at crow202.org
Mon Dec 9 09:04:15 MST 2013


On 2013-12-09 08:42, kitepilot at kitepilot.com wrote:
> Does anybody know in which Universe ubyte is defined in C++?
> Which include file?

AFAICT, "ubyte" isn't defined anywhere, though GLubyte is apparently a 
typedef in GLDefs.h.  If you need an unsigned byte, you use unsigned 
char since sizeof(char) is supposed to be 1 in all C and C++ 
implementations.  (Or at least it was the last time I looked.)  Linux 
kernel code does "typedef unsigned char __u8;" but I don't know if 
that's meant for general userspace use.

-- 
Crow202 Blog: http://crow202.org/wordpress
There is no Darkness in Eternity
But only Light too dim for us to see.


More information about the PLUG-discuss mailing list