IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10994


Ignore:
Timestamp:
Jan 8, 2007, 6:24:08 PM (19 years ago)
Author:
jhoblitt
Message:

include config.h & work around CPP redefinition errors caused by libjpeg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/jpeg/psImageJpeg.c

    r9730 r10994  
     1#ifdef HAVE_CONFIG_H
     2#include <config.h>
     3#endif
     4
    15#include <stdio.h>
    26#include <strings.h>  // for strcasecmp
    37#include <string.h>
    4 
    5 #include <jpeglib.h>
    68
    79#include "psMemory.h"
     
    1113#include "psAssert.h"
    1214#include "psImageJpeg.h"
     15
     16#ifdef HAVE_STDLIB_H
     17// jpeglib.h includes jconfig.h which is full of autoconf generated HAVE_*
     18// defines. This is a hack to work around CPP redefinition errors.  Arrrrrgh!!!
     19// -JH
     20# undef HAVE_STDLIB_H
     21# include <jpeglib.h>
     22#endif // ifdef HAVE_STDLIB_H
    1323
    1424static void imageJpegColormapFree(psImageJpegColormap *map)
Note: See TracChangeset for help on using the changeset viewer.