pdf-devel
[Top][All Lists]
Advanced

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

Re: [pdf-devel] errors building for mingw32


From: jemarch
Subject: Re: [pdf-devel] errors building for mingw32
Date: Wed, 28 Oct 2009 23:32:22 +0100
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)

Hi Pablo.

   And the piece of code from pdf-time.h:

   #ifdef PDF_HOST_WIN32
     /* Windows-specific function to set the time with a pdf_i64_t */
     pdf_status_t
     pdf_time_w32_set_from_filetime (pdf_time_t time_var,
                                     const FILETIME *p_filetime);
   #endif

   This file is missing a windows include for the FILETIME type, if I
   add the include inside this #ifdef, everything goes fine, but
   placing it on the top with other includes (and under the same
   preprocessor condition) messes up the autogenerated pdf.h that's
   used later for compiling tortutils. I don't really know which is
   the best place for this include, as the first fix seems untidy.

The proper way to proceed in this case is to add a PUBLIC block at the
beginning of the file with the inclusion of that header file, like in:

#ifndef PDF_TIME_H
#define PDF_TIME_H

#include <stdio.h>
#ifdef PDF_HOST_WIN32
#   include <FILETYPE.h>
#endif

If that header file causes problem in tortutils when compiling for
mingw32, can you send the output of the compiler?

-- 
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]