#ifndef DT_H
 #define DT_H
 
+#include <pgtypes_timestamp.h>
+
 #define MAXTZLEN             10
 
 #ifdef HAVE_INT64_TIMESTAMP
 int    EncodeDateTime(struct tm * tm, fsec_t fsec, int *tzp, char **tzn, int style, char *str, bool);
 int    EncodeInterval(struct tm * tm, fsec_t fsec, int style, char *str);
 
+int tm2timestamp(struct tm *, fsec_t, int *, Timestamp *);
+
 int    DecodeUnits(int field, char *lowtoken, int *val);
 bool   ClearDateCache(bool, bool, bool);
 
 
        {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 0}};
 
 typedef long AbsoluteTime;
-
-int tm2timestamp(struct tm *, fsec_t, int *, Timestamp *);
    
 #define ABS_SIGNBIT             ((char) 0200)
 #define POS(n)                  (n)