diff --git a/Modules/main.c b/Modules/main.c index 00de7f0d181..4312ef7a1fd 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -9,23 +9,27 @@ #include #if defined(MS_WINDOWS) || defined(__CYGWIN__) -#include -#ifdef HAVE_IO_H -#include -#endif -#ifdef HAVE_FCNTL_H -#include -#endif +# include +# ifdef HAVE_IO_H +# include +# endif +# ifdef HAVE_FCNTL_H +# include +# endif #endif #ifdef _MSC_VER -#include +# include +#endif + +#ifdef __FreeBSD__ +# include #endif #if defined(MS_WINDOWS) -#define PYTHONHOMEHELP "\\python{major}{minor}" +# define PYTHONHOMEHELP "\\python{major}{minor}" #else -#define PYTHONHOMEHELP "/lib/pythonX.X" +# define PYTHONHOMEHELP "/lib/pythonX.X" #endif #define COPYRIGHT \ diff --git a/Programs/python.c b/Programs/python.c index a295486d73f..78e48f800c9 100644 --- a/Programs/python.c +++ b/Programs/python.c @@ -1,12 +1,6 @@ /* Minimal main program -- everything is loaded from the library */ #include "Python.h" -#include "internal/pystate.h" -#include - -#ifdef __FreeBSD__ -#include -#endif #ifdef MS_WINDOWS int @@ -15,8 +9,6 @@ wmain(int argc, wchar_t **argv) return Py_Main(argc, argv); } #else - - int main(int argc, char **argv) {