On Fri, Apr 21, 2006 at 11:21:06PM -0500, Bo Peng wrote: > 2. If viewer() is empty or "auto", ShellExecute will be called, and > call the default viewer under windows. Otherwise, the specified viewer > will be called.
Please, instead of #ifdef _WIN32 #ifndef _WIN32 use #if defined(_WIN32) || defined(__CYGWIN__) #if !defined(_WIN32) && !defined(__CYGWIN__) in this code, as it will also work on Cygwin. -- Enrico