Use stdbool.h with Visual Studio 2013 or higher

2013 is the first version to include the header.

Avoids "codec_api.h(40): error C2632: 'char' followed by 'bool' is illegal"
when building C code.
This commit is contained in:
Nathan Kidd 2015-08-17 09:59:06 -04:00 committed by Nathan Kidd
parent fd7a02b557
commit f21fffda3b

View File

@ -36,7 +36,7 @@
#define WELS_VIDEO_CODEC_SVC_API_H__ #define WELS_VIDEO_CODEC_SVC_API_H__
#ifndef __cplusplus #ifndef __cplusplus
#ifdef _MSC_VER #if defined(_MSC_VER) && (_MSC_VER < 1800)
typedef unsigned char bool; typedef unsigned char bool;
#else #else
#include <stdbool.h> #include <stdbool.h>