postgresql/src/pl/plpython/plpython.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1 KiB
C
Raw Normal View History

/*-------------------------------------------------------------------------
*
* plpython.h - Python as a procedural language for PostgreSQL
*
* Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* src/pl/plpython/plpython.h
*
*-------------------------------------------------------------------------
*/
#ifndef PLPYTHON_H
#define PLPYTHON_H
2023-01-25 12:59:26 -05:00
/* postgres.h needs to be included before Python.h, as usual */
#if !defined(POSTGRES_H)
#error postgres.h must be included before plpython.h
2023-01-25 12:59:26 -05:00
#elif defined(Py_PYTHON_H)
#error Python.h must be included via plpython.h
#endif
/*
* Pull in Python headers via a wrapper header, to control the scope of
* the system_header pragma therein.
*/
#include "plpython_system.h"
/* define our text domain for translations */
#undef TEXTDOMAIN
#define TEXTDOMAIN PG_TEXTDOMAIN("plpython")
/*
* Used throughout, so it's easier to just include it everywhere.
*/
#include "plpy_util.h"
#endif /* PLPYTHON_H */