[x265] [PATCH] library header: use #ifdef __cplusplus
Rafaël Carré
funman at videolan.org
Tue Sep 17 13:49:22 CEST 2013
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
More information about the x265-devel
mailing list