<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - utils/pdfunite.cc fails to build"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=60095#c17">Comment # 17</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - utils/pdfunite.cc fails to build"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=60095">bug 60095</a>
              from <span class="vcard"><a class="email" href="mailto:ajohnson@redneon.com" title="Adrian Johnson <ajohnson@redneon.com>"> <span class="fn">Adrian Johnson</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=60095#c16">comment #16</a>)
<span class="quote">> Wait Wait Wait, are you saying that _FILE_OFFSET_BITS defines the type of
> off_t?</span >

Yes. On 32-bit platforms the size of off_t is determined by _FILE_OFFSET_BITS.

<span class="quote">> Then _FILE_OFFSET_BITS  should be in poppler-config.h too, and that should
> mostly fix the problem, no?</span >

It wouldn't make that much difference. The problem then is we then need to
ensure poppler-config.h is the first include. Otherwise if you have

#include <stdio.h>
#include "poppler-config.h"

off_t will be defined before poppler-config.h is included. And files that don't
include poppler-config but include stdio.h (or other system headers that may
result in off_t being defined) will also have the wrong definition of off_t.

If _FILE_OFFSET_BITS is not defined at the start of each source file (whether
by config.h or poppler-config.h) it becomes very difficult to ensure
_FILE_OFFSET_BITS is defined before any system includes. 

It is also not a good idea to include config.h defines in public header files
since it clashes with the config.h in applications including the header file.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>