From ef5831aaa7ae91db890887d3d818c3f45bae1dcb Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sun, 9 Feb 2014 01:55:01 -0700 Subject: [PATCH] Fix cstdio compile errors --- compat/stdio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compat/stdio.h b/compat/stdio.h index 9db46782c4..a474d21f55 100644 --- a/compat/stdio.h +++ b/compat/stdio.h @@ -46,8 +46,8 @@ inline FILE * tmpfile(void) { return tmpfile64(); } #endif /* __USE_FILE_OFFSET64 && !__REDIRECT */ // Finally import the stuff we actually use -#if HAVE_CSTDIO -#include +#if HAVE_CSTDIO && defined(__cplusplus) +#include #endif #ifndef MAXPATHLEN -- 2.47.2