From 5fa308a43d540b74528f39e87b693ac79f273134 Mon Sep 17 00:00:00 2001 From: "Eric J. Korpela" Date: Fri, 6 May 2005 00:36:07 +0000 Subject: [PATCH] Fixed problem with including std_fixes.h when compiling code as C rather than C++. svn path=/trunk/boinc/; revision=6054 --- lib/std_fixes.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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