I know that this is almost heresy, but I am doing development in VS2005. I need to guarantee the size of certain integer data types. For instance I need an int that is 8 bits wide. Under GCC that should be easy. A char is supposed to be 8 bits wide, but under VS2005 that is not necessarily true, I don’t believe.
VS2005 doesn’t include the C99 headers like stdint.h. If it did, then I could just use int8_t and the like. Is there a way to define these types using the C preprocessor? My understanding is that you can’t do: #if sizeof(char) == 1 typedef char int8_t; typedef unsigned char uint8_t; #elif sizeof(unsigned short int) == 1 … No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.9.14/883 - Release Date: 7/1/2007 12:19 PM -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
