diff --git a/cstore.h b/cstore.h index f51a972e2..d45fde914 100644 --- a/cstore.h +++ b/cstore.h @@ -266,10 +266,6 @@ typedef struct TableWriteState } TableWriteState; -/* Function declarations for extension loading and unloading */ -extern void _PG_init(void); -extern void _PG_fini(void); - extern CompressionType ParseCompressionType(const char *compressionTypeString); extern void InitializeCStoreTableFile(Oid relationId, Relation relation, CStoreOptions *cstoreOptions); diff --git a/mod.c b/mod.c index aa65ac0ec..8cb138c62 100644 --- a/mod.c +++ b/mod.c @@ -13,6 +13,7 @@ #include "postgres.h" +#include "mod.h" #include "cstore_fdw.h" PG_MODULE_MAGIC; diff --git a/mod.h b/mod.h new file mode 100644 index 000000000..3196bc809 --- /dev/null +++ b/mod.h @@ -0,0 +1,21 @@ +/*------------------------------------------------------------------------- + * + * mod.h + * + * Type and function declarations for CStore + * + * Copyright (c) 2016, Citus Data, Inc. + * + * $Id$ + * + *------------------------------------------------------------------------- + */ + +#ifndef MOD_H +#define MOD_H + +/* Function declarations for extension loading and unloading */ +extern void _PG_init(void); +extern void _PG_fini(void); + +#endif /* MOD_H */