Commit 2044016e authored by Steve Lhomme's avatar Steve Lhomme

Make the public headers C++ friendly

Users should include dav1d.h so only this one really needs the extern "C" {}.
parent 0ddaaf8e
......@@ -28,6 +28,10 @@
#ifndef __DAV1D_H__
#define __DAV1D_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "common.h"
#include "picture.h"
#include "data.h"
......@@ -102,4 +106,8 @@ DAV1D_API void dav1d_close(Dav1dContext **c_out);
*/
DAV1D_API void dav1d_flush(Dav1dContext *c);
# ifdef __cplusplus
}
# endif
#endif /* __DAV1D_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment