From f5854148138280c69fdc9d350636dc2140d57753 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 2 Jun 2016 12:41:35 -0700 Subject: remove (hilarious) defaults for various constants getpath.c needs --- Modules/getpath.c | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/Modules/getpath.c b/Modules/getpath.c index 03d292c..18deb60 100644 --- a/Modules/getpath.c +++ b/Modules/getpath.c @@ -101,25 +101,8 @@ #endif -#ifndef VERSION -#define VERSION "2.1" -#endif - -#ifndef VPATH -#define VPATH "." -#endif - -#ifndef PREFIX -# define PREFIX "/usr/local" -#endif - -#ifndef EXEC_PREFIX -#define EXEC_PREFIX PREFIX -#endif - -#ifndef PYTHONPATH -#define PYTHONPATH PREFIX "/lib/python" VERSION ":" \ - EXEC_PREFIX "/lib/python" VERSION "/lib-dynload" +#if !defined(PREFIX) || !defined(EXEC_PREFIX) || !defined(VERSION) || !defined(VPATH) +#error "PREFIX, EXEC_PREFIX, VERSION, and VPATH must be constant defined" #endif #ifndef LANDMARK -- cgit v0.12