ref: 2044016e6a3d8daed4566921e8b177f6bfd68811
parent: 0ddaaf8e90f38e5dc2372d41e209a3123ed05e2c
author: Steve Lhomme <[email protected]>
date: Wed Nov 7 03:37:22 EST 2018
Make the public headers C++ friendly Users should include dav1d.h so only this one really needs the extern "C" {}.
--- a/include/dav1d/dav1d.h
+++ b/include/dav1d/dav1d.h
@@ -28,6 +28,10 @@
#ifndef __DAV1D_H__
#define __DAV1D_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "common.h"
#include "picture.h"
#include "data.h"
@@ -101,5 +105,9 @@
* @param c Input decoder instance.
*/
DAV1D_API void dav1d_flush(Dav1dContext *c);
+
+# ifdef __cplusplus
+}
+# endif
#endif /* __DAV1D_H__ */