ref: c418a76d8e02fb8a2914aa849c3b88f2a70908e3
parent: 136931c265bbe3a50bea42675adcf3a9ff28e890
author: Martin Storsjö <martin@martin.st>
date: Wed Feb 12 17:17:41 EST 2014
Don't try to include stdbool.h on MSVC MSVC only got stdbool.h in MSVC 2013; provide a manual typedef for this compiler instead. The C interface test makes sure that this doesn't break the ABI.
--- a/codec/api/svc/codec_api.h
+++ b/codec/api/svc/codec_api.h
@@ -34,7 +34,11 @@
#define WELS_VIDEO_CODEC_SVC_API_H__
#ifndef __cplusplus
+#ifdef _MSC_VER
+typedef unsigned char bool;
+#else
#include <stdbool.h>
+#endif
#endif
#include "codec_app_def.h"