1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[python] another way to avoid warnings

This commit is contained in:
Witold Filipczyk 2022-01-29 12:21:13 +01:00
parent 386a0f956f
commit c130f96452
10 changed files with 21 additions and 36 deletions

View File

@ -4,14 +4,12 @@
#include "config.h" #include "config.h"
#endif #endif
#define PY_SSIZE_T_CLEAN #include "scripting/python/pythoninc.h"
#undef HAVE_TERM_H
#include <Python.h>
#include <osdefs.h> #include <osdefs.h>
#include <stdlib.h> #include <stdlib.h>
#undef HAVE_TERM_H
#include "elinks.h" #include "elinks.h"
#include "config/home.h" #include "config/home.h"

View File

@ -4,11 +4,8 @@
#include "config.h" #include "config.h"
#endif #endif
#define PY_SSIZE_T_CLEAN #include "scripting/python/pythoninc.h"
#undef HAVE_TERM_H
#include <Python.h>
#undef HAVE_TERM_H
#include "elinks.h" #include "elinks.h"
#include "bfu/inpfield.h" #include "bfu/inpfield.h"

View File

@ -4,11 +4,8 @@
#include "config.h" #include "config.h"
#endif #endif
#define PY_SSIZE_T_CLEAN #include "scripting/python/pythoninc.h"
#undef HAVE_TERM_H
#include <Python.h>
#undef HAVE_TERM_H
#include "elinks.h" #include "elinks.h"
#include "cache/cache.h" #include "cache/cache.h"

View File

@ -4,15 +4,12 @@
#include "config.h" #include "config.h"
#endif #endif
#define PY_SSIZE_T_CLEAN #include "scripting/python/pythoninc.h"
#undef HAVE_TERM_H
#include <Python.h>
#include <iconv.h> #include <iconv.h>
#include <stdarg.h> #include <stdarg.h>
#include <string.h> #include <string.h>
#undef HAVE_TERM_H
#include "elinks.h" #include "elinks.h"
#include "cache/cache.h" #include "cache/cache.h"

View File

@ -4,14 +4,11 @@
#include "config.h" #include "config.h"
#endif #endif
#define PY_SSIZE_T_CLEAN #include "scripting/python/pythoninc.h"
#undef HAVE_TERM_H
#include <Python.h>
#include <stdarg.h> #include <stdarg.h>
#include <string.h> #include <string.h>
#undef HAVE_TERM_H
#include "elinks.h" #include "elinks.h"
#include "config/kbdbind.h" #include "config/kbdbind.h"

View File

@ -4,11 +4,8 @@
#include "config.h" #include "config.h"
#endif #endif
#define PY_SSIZE_T_CLEAN #include "scripting/python/pythoninc.h"
#undef HAVE_TERM_H
#include <Python.h>
#undef HAVE_TERM_H
#include "elinks.h" #include "elinks.h"
#include "cache/cache.h" #include "cache/cache.h"

View File

@ -4,11 +4,8 @@
#include "config.h" #include "config.h"
#endif #endif
#define PY_SSIZE_T_CLEAN #include "scripting/python/pythoninc.h"
#undef HAVE_TERM_H
#include <Python.h>
#undef HAVE_TERM_H
#include "elinks.h" #include "elinks.h"
#include "bfu/menu.h" #include "bfu/menu.h"

View File

@ -4,11 +4,8 @@
#include "config.h" #include "config.h"
#endif #endif
#define PY_SSIZE_T_CLEAN #include "scripting/python/pythoninc.h"
#undef HAVE_TERM_H
#include <Python.h>
#undef HAVE_TERM_H
#include "elinks.h" #include "elinks.h"
#include "intl/libintl.h" #include "intl/libintl.h"

View File

@ -4,11 +4,8 @@
#include "config.h" #include "config.h"
#endif #endif
#define PY_SSIZE_T_CLEAN #include "scripting/python/pythoninc.h"
#undef HAVE_TERM_H
#include <Python.h>
#undef HAVE_TERM_H
#include "elinks.h" #include "elinks.h"
#include "intl/libintl.h" #include "intl/libintl.h"

View File

@ -0,0 +1,11 @@
#ifndef EL__SCRIPTING_PYTHON_PYTHONINC_H
#define EL__SCRIPTING_PYTHON_PYTHONINC_H
#define PY_SSIZE_T_CLEAN
#undef HAVE_TERM_H
#undef _XOPEN_SOURCE
#include <Python.h>
#undef HAVE_TERM_H
#endif