<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - pdftocairo shows wrong version on cygwin"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=57687">57687</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>poppler-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>pdftocairo shows wrong version on cygwin
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ajohnson@redneon.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>utils
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=70790" name="attach_70790" title="Move jpeglib.h into .cc file">attachment 70790</a> <a href="attachment.cgi?id=70790&action=edit" title="Move jpeglib.h into .cc file">[details]</a></span>
Move jpeglib.h into .cc file

On cygwin pdftocairo displays "pdftocairo version 8.0.2".

The problem is /usr/include/jconfig.h (included by jpeglib.h) on cygwin defines
PACKAGE_VERSION.

The attached patch fixes this by moving the #include <jpeglib.h> and libjpeg
types from JpegWriter.h to JpegWriter.cc. This avoids polluting the name space
of our internal header files with junk from other libraries.</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>