Steve Dower | ab04064 | 2015-01-15 09:10:43 -0800 | [diff] [blame] | 1 | // Resource script for Python core DLL. |
| 2 | // Currently only holds version information. |
| 3 | // |
| 4 | #include "winver.h" |
| 5 | |
| 6 | #define PYTHON_COMPANY "Python Software Foundation" |
Benjamin Peterson | 4c70293 | 2016-01-01 10:25:12 -0600 | [diff] [blame] | 7 | #define PYTHON_COPYRIGHT "Copyright \xA9 2001-2016 Python Software Foundation. Copyright \xA9 2000 BeOpen.com. Copyright \xA9 1995-2001 CNRI. Copyright \xA9 1991-1995 SMC." |
Steve Dower | ab04064 | 2015-01-15 09:10:43 -0800 | [diff] [blame] | 8 | |
| 9 | #define MS_WINDOWS |
| 10 | #include "modsupport.h" |
| 11 | #include "patchlevel.h" |
Steve Dower | a7a222f | 2016-04-12 20:11:25 -0700 | [diff] [blame] | 12 | #include <pythonnt_rc.h> |
Steve Dower | ab04064 | 2015-01-15 09:10:43 -0800 | [diff] [blame] | 13 | #ifdef _DEBUG |
Steve Dower | ab04064 | 2015-01-15 09:10:43 -0800 | [diff] [blame] | 14 | # define PYTHON_DEBUG_EXT "_d" |
| 15 | #else |
Steve Dower | ab04064 | 2015-01-15 09:10:43 -0800 | [diff] [blame] | 16 | # define PYTHON_DEBUG_EXT |
| 17 | #endif |
| 18 | |
| 19 | /* e.g., 3.3.0a1 |
| 20 | * PY_VERSION comes from patchlevel.h |
| 21 | */ |
| 22 | #define PYTHON_VERSION PY_VERSION "\0" |
| 23 | |
| 24 | /* 64-bit version number as comma-separated list of 4 16-bit ints */ |
| 25 | #if PY_MICRO_VERSION > 64 |
| 26 | # error "PY_MICRO_VERSION > 64" |
| 27 | #endif |
| 28 | #if PY_RELEASE_LEVEL > 99 |
| 29 | # error "PY_RELEASE_LEVEL > 99" |
| 30 | #endif |
| 31 | #if PY_RELEASE_SERIAL > 9 |
| 32 | # error "PY_RELEASE_SERIAL > 9" |
| 33 | #endif |
| 34 | #define PYVERSION64 PY_MAJOR_VERSION, PY_MINOR_VERSION, FIELD3, PYTHON_API_VERSION |