mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
support windows in nik2img.cpp
This commit is contained in:
parent
f9e11dabeb
commit
afee619e63
@ -96,11 +96,14 @@ int main (int argc,char** argv)
|
||||
if (auto_open)
|
||||
{
|
||||
std::ostringstream s;
|
||||
#ifdef DARWIN
|
||||
s << "open " << img_file;
|
||||
#ifdef __APPLE__
|
||||
s << "open ";
|
||||
#elif _WIN32
|
||||
s << "start ";
|
||||
#else
|
||||
s << "xdg-open " << img_file;
|
||||
s << "xdg-open ";
|
||||
#endif
|
||||
s << img_file;
|
||||
int ret = system(s.str().c_str());
|
||||
if (ret != 0)
|
||||
return_value = ret;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user