Ticket #41: image.cpp.diff

File image.cpp.diff, 903 bytes (added by brickcentral.livejournal.com, 7 years ago)
  • image.cpp

    old new  
    144144    return true;
    145145  }
    146146
    147 #if LC_HAVE_JPEGLIB
     147#ifdef LC_HAVE_JPEGLIB
    148148  if ((buf[0] == 0xFF) && (buf[1] == 0xD8))
    149149  {
    150150    if (!LoadJPG (file))
     
    154154  }
    155155#endif
    156156
    157 #if LC_HAVE_PNGLIB
     157#ifdef LC_HAVE_PNGLIB
    158158  const unsigned char png_signature[8] = { 137, 80, 78, 71, 13, 10, 26, 10 };
    159159
    160160  // Check for the PNG header
     
    196196{
    197197  switch (opts->format)
    198198  {
    199 #if LC_HAVE_JPEGLIB
     199#ifdef LC_HAVE_JPEGLIB
    200200  case LC_IMAGE_JPG:
    201201    return SaveJPG (file, opts->quality, opts->interlaced);
    202202#endif
     
    207207  case LC_IMAGE_BMP:
    208208    return SaveBMP (file, opts->truecolor == false);
    209209
    210 #if LC_HAVE_PNGLIB
     210#ifdef LC_HAVE_PNGLIB
    211211  case LC_IMAGE_PNG:
    212212    return SavePNG (file, opts->transparent, opts->interlaced, opts->background);
    213213#endif