Changeset 395 for trunk/src


Ignore:
Timestamp:
Dec 5, 2009, 6:37:27 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

3rdparty/freetype: Added a better temporary workaround for the GCC 3.3.5 bug not allowing to include freetype.h in sources. Should be removed when we upgrade to GCC 4.

Location:
trunk/src/3rdparty/freetype/include/freetype
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/3rdparty/freetype/include/freetype/config/ftheader.h

    r2 r395  
    171171   *
    172172   */
     173#if defined(__OS2__) && defined(__GNUC__)
     174# if __GNUC__ == 3 && __GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ == 5
     175    // GCC for OS/2 version 3.3.5 CSD3 doesn't like the style of the
     176    // comments in the ../3rdparty/freetype/include/freetype/freetype.h file
     177    // (included by the FT_FREETYPE_H argument below). This sed command
     178    //   sed -e "/^ *\/\*.*\*\/ *$/ d" freetype.h > freetype.os2-g++.h
     179    // proves it: freetype.os2-g++.h stops showing the mystic "Invalid argument"
     180    // compiler error generated for the original. Looks like a compiler bug.
     181    // Until we upgrade GCC to a version that is free of it, we use this sed'ed
     182    // header as a temporary workaround.
     183#  define FT_FREETYPE_H  <freetype/freetype.os2-g++.h>
     184# else
     185    // On a newer compiler that works, we should completely remove any traces of
     186    // this workaround from this file
     187#  error "Please check the comment above this line!"
     188# endif
     189#else
    173190#define FT_FREETYPE_H  <freetype/freetype.h>
     191#endif
    174192
    175193
Note: See TracChangeset for help on using the changeset viewer.