timescaledb/src/time_bucket.h
Joshua Lockerman 5eea9b9ae0 Fix linking issues on Windows
Windows requires all functions to have the same linkage everywhere: if
they have TSDLLEXPORT in one header, they need to have it in every C
file, and every other header also.
2019-04-26 13:08:00 -04:00

24 lines
822 B
C

/*
* This file and its contents are licensed under the Apache License 2.0.
* Please see the included NOTICE for copyright information and
* LICENSE-APACHE for a copy of the license.
*/
#ifndef TIMESCALEDB_TIME_BUCKET_H
#define TIMESCALEDB_TIME_BUCKET_H
#include <postgres.h>
#include <fmgr.h>
#include "export.h"
extern TSDLLEXPORT Datum ts_int16_bucket(PG_FUNCTION_ARGS);
extern TSDLLEXPORT Datum ts_int32_bucket(PG_FUNCTION_ARGS);
extern TSDLLEXPORT Datum ts_int64_bucket(PG_FUNCTION_ARGS);
extern TSDLLEXPORT Datum ts_date_bucket(PG_FUNCTION_ARGS);
extern TSDLLEXPORT Datum ts_timestamp_bucket(PG_FUNCTION_ARGS);
extern TSDLLEXPORT Datum ts_timestamptz_bucket(PG_FUNCTION_ARGS);
extern TSDLLEXPORT int64 ts_time_bucket_by_type(int64 interval, int64 timestamp, Oid type);
#endif /* TIMESCALEDB_TIME_BUCKET_H */