diff --git a/lib/std_fixes.h b/lib/std_fixes.h index 26935bbcc4..0e909ed13f 100644 --- a/lib/std_fixes.h +++ b/lib/std_fixes.h @@ -75,7 +75,9 @@ o_iterator transform(i_iterator first, i_iterator last, o_iterator res, OP op) { #endif /* HAVE_STD_TRANSFORM */ #endif /* CONFIG_TEST */ -#if defined(LARGEFILE_BREAKS_CXX) && (defined(_LARGE_FILES) || (_FILE_OFFSET_BITS==64)) && !defined(_USING_FCGI_) +#if defined(__cplusplus) && defined(LARGEFILE_BREAKS_CXX) && \ + (defined(_LARGE_FILES) || (_FILE_OFFSET_BITS==64)) \ + && !defined(_USING_FCGI_) #include #include