summaryrefslogtreecommitdiff
path: root/src/include/c.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/c.h')
-rw-r--r--src/include/c.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/c.h b/src/include/c.h
index c8f72e44d89..405d53cb56b 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -1283,6 +1283,15 @@ extern int fdatasync(int fildes);
#endif
/*
+ * Similarly, wrappers around labs()/llabs() matching our int64.
+ */
+#ifdef HAVE_LONG_INT_64
+#define i64abs(i) labs(i)
+#else
+#define i64abs(i) llabs(i)
+#endif
+
+/*
* Use "extern PGDLLIMPORT ..." to declare variables that are defined
* in the core backend and need to be accessible by loadable modules.
* No special marking is required on most ports.