--- Modules/getpath.c.orig 2011-07-14 13:29:39.587922880 -0400 +++ Modules/getpath.c 2011-07-14 13:45:05.316292222 -0400 @@ -100,6 +100,8 @@ extern "C" { #endif +#define __W(x) L ## x +#define WCHAR(y) __W(y) #ifndef VERSION #define VERSION "2.1" @@ -135,7 +137,7 @@ static wchar_t progpath[MAXPATHLEN+1]; static wchar_t *module_search_path = NULL; static int module_search_path_malloced = 0; -static wchar_t *lib_python = L"lib/python" VERSION; +static wchar_t *lib_python = L"lib/python" WCHAR(VERSION); static void reduce(wchar_t *dir) @@ -641,7 +643,7 @@ /* We can't exit, so print a warning and limp along */ fprintf(stderr, "Not enough memory for dynamic PYTHONPATH.\n"); fprintf(stderr, "Using default static PYTHONPATH.\n"); - module_search_path = L"" PYTHONPATH; + module_search_path = L"" WCHAR(PYTHONPATH); } else { /* Run-time value of $PYTHONPATH goes first */