Ignore:
Timestamp:
Sep 9, 2009, 1:25:02 AM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Provided a temporary workaround for the mystic failure to build qfontsubset.cpp with QT_NO_FREETYPE removed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/text/qfontsubset.cpp

    r2 r170  
    5252#ifndef QT_NO_FREETYPE
    5353#if defined(Q_WS_X11) || defined(Q_WS_QWS)
    54 #    include "private/qfontengine_ft_p.h"
     54#   include "private/qfontengine_ft_p.h"
    5555#endif
    56 #include <ft2build.h>
    57 #include FT_FREETYPE_H
     56#if defined(Q_OS_OS2) && defined(__GNUC__)
     57#   ifndef QT_NO_PRINTER
     58        // GCC for OS/2 version 3.3.5 CSD3 doesn't like the style of the
     59        // comments in the ../3rdparty/freetype/include/freetype/freetype.h file
     60        // (included by the FT_FREETYPE_H argument below). This sed command
     61        //   sed -e "/^ *\/\*.*\*\/ *$/ d" freetype.h >freetype.new
     62        // proves it: freetype.new stops showing the mystic "Invalid argument"
     63        // compiler error generated for the original. Looks like a compiler bug.
     64        // We don't fix the original this way though because it's possible that
     65        // we change the compiler to a higher version lacking this bug by the
     66        // time we want to remove QT_NO_PRINTER from the configuration.
     67#       error "Please check the comment above this line!"
     68#   endif
     69#else
     70#   include <ft2build.h>
     71#   include FT_FREETYPE_H
     72#endif
    5873#endif
    5974
Note: See TracChangeset for help on using the changeset viewer.