pdf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pdf-devel] PDF DIR APIS


From: jemarch
Subject: Re: [pdf-devel] PDF DIR APIS
Date: Tue, 29 Sep 2009 20:49:09 +0200
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

   I was building gnupdf with Cygwin, but found some confused DIR
   definitions(src/base/pdf-fsys-disk.c:432):

   /* Host-dependent opendir(), closedir() and friends*/
   #ifdef PDF_HOST_WIN32
   #define PDF_DIR          _WDIR
   #define pdf_dirent_s     _wdirent
   #define PDF_OPENDIR(f)   _wopendir((const wchar_t *)f)
   #define PDF_READDIR(ds)  _wreaddir((PDF_DIR *)ds)


   I don't know where's the definition of _WDIR-like macro/functions
   in Win32, and was unable to pass build on the code.  (I checked out
   with latest trunk code)

The PDF_HOST_WIN32 macro shall not be defined when compiling for
Cygwin.  Cygwin provides a POSIX environment in w32 systems.

Take a look to configure.ac.  The PDF_HOST_WIN32 is set only if the
host string matches *-mingw32*  (I don't have a cygwin environment to
test).

--
Jose E. Marchesi  <address@hidden>
                  http://www.jemarch.net
GNU Project       http://www.gnu.org






reply via email to

[Prev in Thread] Current Thread [Next in Thread]