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:
parent
fd7a02b557
commit
f21fffda3b
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user