gendef.h
资源名称:bmp.rar [点击查看]
上传用户:kaigelee
上传日期:2022-07-13
资源大小:6432k
文件大小:1k
源码类别:
图片显示
开发平台:
Visual C++
- #ifndef _GENDEF_H_
- #define _GENDEF_H_
- /*****************************************************************************
- ** PORTABLE SYSTEM WIDE DATA TYPES
- *****************************************************************************/
- #ifndef PROTOTYPES
- #define PROTOTYPES 0
- #endif
- #ifndef TRUE
- # define TRUE 1
- #endif
- #ifndef FALSE
- # define FALSE 0
- #endif
- #ifndef NULL
- # define NULL (0)
- #endif
- typedef signed char INT8S;
- typedef signed short INT16S;
- typedef signed long INT32S;
- typedef unsigned char INT8U;
- typedef unsigned short INT16U;
- typedef unsigned long INT32U;
- /*****************************************************************************
- ** Generic Return Values. These will not be redefined in the respective
- ** drivers.
- *****************************************************************************/
- #ifndef SUCCESS
- # define SUCCESS (0)
- #endif
- #ifndef FAILURE
- # define FAILURE (-1)
- #endif
- #define _min(a,b) (((a) < (b)) ? (a) : (b)) /* Choose minimum value */
- #endif /* #ifdef _GENDEF_H_ */