首页 > 其他分享 >C99数据类型定义

C99数据类型定义

时间:2022-10-29 11:44:04浏览次数:52  
标签:__ typedef 定义 int C99 数据类型 unsigned long defined

stdint.h库中

/* There is some amount of overlap with <sys/types.h> as known by inet code */
#ifndef __int8_t_defined
# define __int8_t_defined
typedef signed char             int8_t;
typedef short int               int16_t;
typedef int                     int32_t;
# if __WORDSIZE == 64
typedef long int                int64_t;
# else
__extension__
typedef long long int           int64_t;
# endif
#endif

/* Unsigned.  */
typedef unsigned char           uint8_t;
typedef unsigned short int      uint16_t;
#ifndef __uint32_t_defined
typedef unsigned int            uint32_t;
# define __uint32_t_defined
#endif
#if __WORDSIZE == 64
typedef unsigned long int       uint64_t;
#else
__extension__
typedef unsigned long long int  uint64_t;
#endif

 

标签:__,typedef,定义,int,C99,数据类型,unsigned,long,defined
From: https://www.cnblogs.com/toriyung/p/16838407.html

相关文章