]> arthur.barton.de Git - bup.git/blob - dev/python.c
Drop vestigial compat.range
[bup.git] / dev / python.c
1 #define _LARGEFILE64_SOURCE 1
2 #define PY_SSIZE_T_CLEAN 1
3 #undef NDEBUG
4 #include "../config/config.h"
5
6 // According to Python, its header has to go first:
7 //   http://docs.python.org/3/c-api/intro.html#include-files
8 #include <Python.h>
9
10 #include "bup/compat.h"
11
12 #if PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION < 8
13 # define bup_py_main bup_py_bytes_main
14 #elif PY_MAJOR_VERSION > 2
15 # define bup_py_main Py_BytesMain
16 #else
17 # define bup_py_main Py_Main
18 #endif
19
20 int main(int argc, char **argv)
21 {
22     return bup_py_main (argc, argv);
23 }