#pragma once extern "C" { #include "postgres.h" #include "fmgr.h" } // Все функции UTL_RAW (fmgr) — заглушки. extern "C" { PGDLLEXPORT Datum utl_raw_bit_and(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_bit_complement(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_bit_or(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_bit_xor(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_cast_from_binary_double(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_cast_from_binary_float(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_cast_from_binary_integer(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_cast_from_number(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_cast_to_binary_double(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_cast_to_binary_float(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_cast_to_binary_integer(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_cast_to_number(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_cast_to_nvarchar2(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_cast_to_raw(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_cast_to_varchar2(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_compare(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_concat(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_convert(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_copies(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_length(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_overlay(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_reverse(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_substr(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_translate(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_transliterate(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_xrange(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_get_version(PG_FUNCTION_ARGS); PGDLLEXPORT Datum utl_raw_make_raw(PG_FUNCTION_ARGS); } // extern "C"