From 8254ee748c227f5921d28dd5fece73b20fde50f7 Mon Sep 17 00:00:00 2001 From: Manuel Klimek Date: Thu, 29 Oct 2015 10:29:55 -0700 Subject: [PATCH] Allow suppressing the definition of __USE_FILE_OFFSET64 by defining SUPPRESS_USE_FILE_OFFSET64 in the CROSSTOOL. --- include/features.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/features.h b/include/features.h index b68915a27a5..0748c81d319 100644 --- a/include/features.h +++ b/include/features.h @@ -360,7 +360,9 @@ # define __USE_LARGEFILE64 1 #endif -#if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64 +/* Google local: Add a way to disable the auto-64-bit-offset option for functions like + fgetpos, which can cause mismatched signatures in C++ modules. */ +#if !(defined SUPPRESS_USE_FILE_OFFSET64) && defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64 # define __USE_FILE_OFFSET64 1 #endif -- 2.47.2