From d18a95fda6449fc9bc3c64b7b7f0582d2b767957 Mon Sep 17 00:00:00 2001 From: TingPing Date: Wed, 25 Sep 2013 20:53:23 -0400 Subject: Make Python version consistent on both platforms and don't hardcode 2.7/3.3 --- plugins/python/python.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'plugins/python') diff --git a/plugins/python/python.c b/plugins/python/python.c index 7bedcad9..9ef7e0ed 100644 --- a/plugins/python/python.c +++ b/plugins/python/python.c @@ -83,18 +83,9 @@ #define VERSION_MAJOR 1 #define VERSION_MINOR 0 -/* Version string macro */ -#ifdef WIN32 -#if PY_MAJOR_VERSION == 2 -#define VERSION STRINGIZE(VERSION_MAJOR) "." STRINGIZE(VERSION_MINOR) "/2.7" /* Linked to python27.dll */ -#elif PY_MAJOR_VERSION == 3 -#define VERSION STRINGIZE(VERSION_MAJOR) "." STRINGIZE(VERSION_MINOR) "/3.3" /* Linked to python33.dll */ -#endif -#endif - -#ifndef VERSION -#define VERSION STRINGIZE(VERSION_MAJOR) "." STRINGIZE(VERSION_MINOR) -#endif +/* Version string macro e.g 1.0/3.3 */ +#define VERSION STRINGIZE(VERSION_MAJOR) "." STRINGIZE(VERSION_MINOR) "/" \ + STRINGIZE(PY_MAJOR_VERSION) "." STRINGIZE (PY_MINOR_VERSION) /* #define's for Python 2 */ #if PY_MAJOR_VERSION == 2 @@ -382,7 +373,7 @@ Usage: /PY LOAD \n\ ABOUT\n\ \n"; -static const char about[] = "HexChat Python " PY_VERSION " Interface Version " VERSION "\n"; +static const char about[] = "HexChat Python interface version " VERSION "\n"; /* ===================================================================== */ /* Utility functions */ -- cgit 1.4.1