]> arthur.barton.de Git - bup.git/blob - dev/python.c
Convert top level executables to binaries and clean up clean
[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/2/c-api/intro.html#include-files
8 //   http://docs.python.org/3/c-api/intro.html#include-files
9 #include <Python.h>
10
11 #if PY_MAJOR_VERSION > 2
12 #define bup_py_main Py_BytesMain
13 # else
14 #define bup_py_main Py_Main
15 #endif
16
17 int main(int argc, char **argv)
18 {
19     return bup_py_main (argc, argv);
20 }