mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-22 09:12:22 -05:00
Make Python version consistent on both platforms
and don't hardcode 2.7/3.3
This commit is contained in:
parent
c7a00a4aba
commit
d18a95fda6
@ -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 <filename>\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 */
|
||||
|
Loading…
Reference in New Issue
Block a user