C90 does not support the boolean data type.
C99 does include it with this include:
#include <stdbool.h>
另外使用c99标准时,必须在makfile里加入-std=c99标准,如:
CC = gcc
FLAGS = -std=c99 -o
SRC = flash_stress.c
APP = flash_stress
all:
${CC} ${FLAGS} ${APP} ${SRC}
clean:
rm -rf ${APP} *.o