aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/dt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/utils/dt.h')
-rw-r--r--src/include/utils/dt.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/include/utils/dt.h b/src/include/utils/dt.h
index 1de22f70df2..edf9715f931 100644
--- a/src/include/utils/dt.h
+++ b/src/include/utils/dt.h
@@ -8,7 +8,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: dt.h,v 1.13 1997/07/01 00:25:30 thomas Exp $
+ * $Id: dt.h,v 1.14 1997/07/29 14:08:21 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -215,10 +215,20 @@ typedef struct {
#define DATETIME_IS_NOEND(j) (j == DT_NOEND)
#define DATETIME_CURRENT(j) {j = DT_CURRENT;}
+#if defined(linux) && defined(PPC)
+extern int datetime_is_current(double j);
+#define DATETIME_IS_CURRENT(j) datetime_is_current(j)
+#else
#define DATETIME_IS_CURRENT(j) (j == DT_CURRENT)
+#endif
#define DATETIME_EPOCH(j) {j = DT_EPOCH;}
+#if defined(linux) && defined(PPC)
+extern int datetime_is_epoch(double j);
+#define DATETIME_IS_EPOCH(j) datetime_is_epoch(j)
+#else
#define DATETIME_IS_EPOCH(j) (j == DT_EPOCH)
+#endif
#define DATETIME_IS_RELATIVE(j) (DATETIME_IS_CURRENT(j) || DATETIME_IS_EPOCH(j))
#define DATETIME_NOT_FINITE(j) (DATETIME_IS_INVALID(j) \