]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Allow suppressing the definition of __USE_FILE_OFFSET64 by defining SUPPRESS_USE_FILE...
authorManuel Klimek <klimek@google.com>
Thu, 29 Oct 2015 17:29:55 +0000 (10:29 -0700)
committerManuel Klimek <klimek@google.com>
Thu, 29 Oct 2015 17:29:55 +0000 (10:29 -0700)
include/features.h

index b68915a27a5be5c662689098737eb1516454b296..0748c81d31991e4c3a55e6a333cf671c29523c04 100644 (file)
 # 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