summaryrefslogtreecommitdiff
path: root/Programs
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-12-18 23:42:55 +0100
committerGitHub <noreply@github.com>2017-12-18 23:42:55 +0100
commit6efcb6d3d5911aaf699f9df3bb3bc26e94f38e6d (patch)
tree2f7c542cdd6c293b8d24efd198e6a9fb3b36585e /Programs
parentd757aaf9dd767d13205bf9917e520ebf43e7f6e5 (diff)
downloadcpython-git-6efcb6d3d5911aaf699f9df3bb3bc26e94f38e6d.tar.gz
bpo-32030: Fix compilation on FreeBSD, #include <fenv.h> (#4919)
* main.c: add missing #include <fenv.h> on FreeBSD * indent also other #ifdef in main.c * cleanup Programs/python.c
Diffstat (limited to 'Programs')
-rw-r--r--Programs/python.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/Programs/python.c b/Programs/python.c
index a295486d73..78e48f800c 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 <locale.h>
-
-#ifdef __FreeBSD__
-#include <fenv.h>
-#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)
{