Remove a warning when using from C
---
source/x265.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/source/x265.h b/source/x265.h
index a5affe4..339ea17 100644
--- a/source/x265.h
+++ b/source/x265.h
@@ -26,7 +26,7 @@
#include <stdint.h>
-#if __cplusplus
+#ifdef __cplusplus
extern "C" {
#endif
@@ -344,7 +344,7 @@ void x265_encoder_close(x265_t *, double *globalPsnr);
*/
void x265_cleanup(void);
-#if __cplusplus
+#ifdef __cplusplus
}
#endif
--
1.8.1.2
_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel