android-project/proguard-project.txt
author Sam Lantinga <slouken@libsdl.org>
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

skaller

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 # To enable ProGuard in your project, edit project.properties
     2 # to define the proguard.config property as described in that file.
     3 #
     4 # Add project specific ProGuard rules here.
     5 # By default, the flags in this file are appended to flags specified
     6 # in ${sdk.dir}/tools/proguard/proguard-android.txt
     7 # You can edit the include path and order by changing the ProGuard
     8 # include property in project.properties.
     9 #
    10 # For more details, see
    11 #   http://developer.android.com/guide/developing/tools/proguard.html
    12 
    13 # Add any project specific keep options here:
    14 
    15 # If your project uses WebView with JS, uncomment the following
    16 # and specify the fully qualified class name to the JavaScript interface
    17 # class:
    18 #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
    19 #   public *;
    20 #}