/* ------------------------------------------------------------------------- * * postgres_fe.h * Primary include file for openGauss client-side .c files * * This should be the first file included by openGauss client libraries and * application programs --- but not by backend modules, which should include * postgres.h. * * * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group * Portions Copyright (c) 1995, Regents of the University of California * * src/include/postgres_fe.h * * ------------------------------------------------------------------------- */ #ifndef POSTGRES_FE_H #define POSTGRES_FE_H #ifndef FRONTEND #define FRONTEND 1 #endif #include "c.h" #include "securec.h" #include "securec_check.h" #include #ifndef Assert #ifndef USE_ASSERT_CHECKING #define Assert(p) #else #define Assert(p) assert(p) #endif /* USE_ASSERT_CHECKING */ #endif /* Assert */ #ifndef AssertMacro #define AssertMacro Assert #endif #ifndef BoolGetDatum #define BoolGetDatum(X) /*lint -e506*/ ((Datum)((X) ? 1 : 0)) /*lint +e506*/ #endif #ifndef PointerGetDatum #define PointerGetDatum(X) ((Datum)(X)) #endif #ifndef HAVE_DATABASE_TYPE #define HAVE_DATABASE_TYPE /* Type of database; increase for sql compatibility */ typedef enum { ORA_FORMAT, TD_FORMAT } DatabaseType; #endif // HAVE_DATABASE_TYPE #endif /* POSTGRES_FE_H */