author Sam Lantinga <>
Tue, 19 Aug 2014 21:17:21 -0700
changeset 9094 65a23b7b43c7
parent 6631 47ab7ba21530
permissions -rw-r--r--
Fixed bug 2694 - configure bug __has_feature macro not detected


using gcc 4.2 (the default) on Mac OSX 10.6.8

CC build/SDL_dynapi.lo
In file included from /Users/johnskaller/SDL/src/dynapi/SDL_dynapi.c:31:
include/SDL_syswm.h:211:39: error: missing binary operator before token "("

The fault appears to be here:

#if defined(__OBJC__) && __has_feature(objc_arc)

that the __has_feature macro is not supported by gcc 4.2.

The code works fine with my clang 3.3svn.
     1 # This file is used to override default values used by the Ant build system.
     2 #
     3 # This file must be checked into Version Control Systems, as it is
     4 # integral to the build system of your project.
     6 # This file is only used by the Ant script.
     8 # You can use this to override default values such as
     9 #  'source.dir' for the location of your java source folder and
    10 #  'out.dir' for the location of your output folder.
    12 # You can also use it define how the release builds are signed by declaring
    13 # the following properties:
    14 #  '' for the location of your keystore and
    15 #  'key.alias' for the name of the key to use.
    16 # The password will be asked during the build when you use the 'release' target.