Commit 6f30d566 authored by Michael Meskes's avatar Michael Meskes

The remaining files ...

parent 8d8b9401
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "dt.h"
#include "extern.h" #include "extern.h"
#include "dt.h"
#include "pgtypes_error.h" #include "pgtypes_error.h"
#include "pgtypes_date.h" #include "pgtypes_date.h"
......
...@@ -15,18 +15,6 @@ typedef double fsec_t; ...@@ -15,18 +15,6 @@ typedef double fsec_t;
#define JROUND(j) (rint(((double) (j))*TIME_PREC_INV)/TIME_PREC_INV) #define JROUND(j) (rint(((double) (j))*TIME_PREC_INV)/TIME_PREC_INV)
#endif #endif
#ifndef bool
#define bool char
#endif /* ndef bool */
#ifndef FALSE
#define FALSE 0
#endif /* FALSE */
#ifndef TRUE
#define TRUE 1
#endif /* TRUE */
#define USE_POSTGRES_DATES 0 #define USE_POSTGRES_DATES 0
#define USE_ISO_DATES 1 #define USE_ISO_DATES 1
#define USE_SQL_DATES 2 #define USE_SQL_DATES 2
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
#include <string.h> #include <string.h>
#include <math.h> #include <math.h>
#include "dt.h"
#include "extern.h" #include "extern.h"
#include "dt.h"
static int day_tab[2][13] = { static int day_tab[2][13] = {
{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 0}, {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 0},
......
...@@ -35,6 +35,17 @@ int pgtypes_fmt_replace(union un_fmt_replace, int, char**, int*); ...@@ -35,6 +35,17 @@ int pgtypes_fmt_replace(union un_fmt_replace, int, char**, int*);
char *pgtypes_alloc(long); char *pgtypes_alloc(long);
char *pgtypes_strdup(char *); char *pgtypes_strdup(char *);
#ifndef bool
#define bool char
#endif /* ndef bool */
#ifndef FALSE
#define FALSE 0
#endif /* FALSE */
#ifndef TRUE
#define TRUE 1
#endif /* TRUE */
#endif /* __PGTYPES_COMMON_H__ */ #endif /* __PGTYPES_COMMON_H__ */
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
#error -ffast-math is known to break this code #error -ffast-math is known to break this code
#endif #endif
#include "dt.h"
#include "extern.h" #include "extern.h"
#include "dt.h"
#include "pgtypes_error.h" #include "pgtypes_error.h"
#include "pgtypes_interval.h" #include "pgtypes_interval.h"
#include "datetime.h" #include "datetime.h"
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
#error -ffast-math is known to break this code #error -ffast-math is known to break this code
#endif #endif
#include "dt.h"
#include "extern.h" #include "extern.h"
#include "dt.h"
#include "pgtypes_timestamp.h" #include "pgtypes_timestamp.h"
#include "pgtypes_date.h" #include "pgtypes_date.h"
#include "datetime.h" #include "datetime.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment