ref: f21fffda3b5af91bd8007094cdd629f1383ba3ce
parent: fd7a02b557062f2657d6ae13578b000480187fe0
author: Nathan Kidd <[email protected]>
date: Mon Aug 17 05:59:06 EDT 2015
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.
--- a/codec/api/svc/codec_api.h
+++ b/codec/api/svc/codec_api.h
@@ -36,7 +36,7 @@
#define WELS_VIDEO_CODEC_SVC_API_H__
#ifndef __cplusplus
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && (_MSC_VER < 1800)
typedef unsigned char bool;
#else
#include <stdbool.h>