aboutsummaryrefslogtreecommitdiffstats
path: root/trunk/src/gpgme.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/gpgme.h.in')
-rw-r--r--trunk/src/gpgme.h.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/trunk/src/gpgme.h.in b/trunk/src/gpgme.h.in
index 65823a66..474be73d 100644
--- a/trunk/src/gpgme.h.in
+++ b/trunk/src/gpgme.h.in
@@ -74,6 +74,17 @@ extern "C" {
library. */
#define GPGME_VERSION "@PACKAGE_VERSION@"
+/* Check for a matching _FILE_OFFSET_BITS definition. */
+#if @NEED__FILE_OFFSET_BITS@
+#ifndef _FILE_OFFSET_BITS
+#error GPGME was compiled with _FILE_OFFSET_BITS = @NEED__FILE_OFFSET_BITS@, please see the section "Largefile support (LFS)" in the GPGME manual.
+#else
+#if (_FILE_OFFSET_BITS) != (@NEED__FILE_OFFSET_BITS@)
+#error GPGME was compiled with a different value for _FILE_OFFSET_BITS, namely @NEED__FILE_OFFSET_BITS@, please see the section "Largefile support (LFS)" in the GPGME manual.
+#endif
+#endif
+#endif
+
/* Some opaque data types used by GPGME. */