Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a394793 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Stop #define'ing __ANDROID_API__.

The correct way to make this work for the host fuzzers is to use the
"libbinder_ndk_host_user" defaults.

Also normalize the non-bionic definitions of __INTRODUCED_IN() to match
the majority.

Bug: http://b/178449269
Test: treehugger
Change-Id: I2df8bf705600544553f4889d39f7740136dcff48
parent 210105af
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
cc_library {
    name: "libflacextractor",
    defaults: ["extractor-defaults"],
    defaults: ["extractor-defaults", "libbinder_ndk_host_user"],

    srcs: ["FLACExtractor.cpp"],

+1 −1
Original line number Diff line number Diff line
cc_library {
    name: "libwavextractor",

    defaults: ["extractor-defaults"],
    defaults: ["extractor-defaults", "libbinder_ndk_host_user"],

    srcs: ["WAVExtractor.cpp"],

+2 −12
Original line number Diff line number Diff line
@@ -40,18 +40,8 @@
#include <sys/cdefs.h>
#include <sys/types.h>

#ifndef __ANDROID__
// Value copied from 'bionic/libc/include/android/api-level.h' which is not available on
// non Android systems. It is set to 10000 which is same as __ANDROID_API_FUTURE__ value.
#ifndef __ANDROID_API__
#define __ANDROID_API__ 10000
#endif

// Value copied from 'bionic/libc/include/android/versioning.h' which is not available on
// non Android systems
#ifndef __INTRODUCED_IN
#define __INTRODUCED_IN(api_level)
#endif
#if !defined(__INTRODUCED_IN)
#define __INTRODUCED_IN(__api_level) /* nothing */
#endif

#include "NdkMediaError.h"