comparison pyvamp-main.cpp @ 2:211ebe55d521

added missing ifdef WIN32
author fazekasgy
date Wed, 12 Mar 2008 12:42:19 +0000
parents dc88002ce687
children 134313c59d82
comparison
equal deleted inserted replaced
1:dc88002ce687 2:211ebe55d521
125 void *pylib = 0; 125 void *pylib = 0;
126 126
127 cerr << "Loading Python Interpreter at: " << pythonPath << endl; 127 cerr << "Loading Python Interpreter at: " << pythonPath << endl;
128 //Preloading the binary allows the load of shared libs 128 //Preloading the binary allows the load of shared libs
129 //TODO: check how to do RTLD_NOW on Windows 129 //TODO: check how to do RTLD_NOW on Windows
130 #ifdef _WIN32
130 pylib = LoadLibrary(pythonPath.c_str()); 131 pylib = LoadLibrary(pythonPath.c_str());
131 #else 132 #else
132 pylib = dlopen(pythonPath.c_str(), RTLD_NOW|RTLD_GLOBAL); 133 pylib = dlopen(pythonPath.c_str(), RTLD_NOW|RTLD_GLOBAL);
133 #endif 134 #endif
134 if (!pylib) cerr << "Warning: Could not preload Python." 135 if (!pylib) cerr << "Warning: Could not preload Python."