Skip to content

Fix Build if WINAPI_FAMILY_PARTITION is undefined

Carlo Bramini requested to merge carlo-bramini/freetype:fix-wince-2 into master

I got this error when compiling:

builds/windows/ftsystem.c:201:29: error: missing binary operator before token "("
  201 |     !WINAPI_FAMILY_PARTITION( WINAPI_PARTITION_DESKTOP )
      |                             ^

It seems that the preprocessor does not like to see such use of an undefined macro. Tested with GCC-9.3.0 Attached patch fixes the issue by simply splitting the #if statement into two lines.

Merge request reports