Skip to content

Commit 3057309

Browse files
jgaillard85Android (Google) Code Review
authored andcommitted
Merge "Allow using libandroid_headers_private on host builds" into main
2 parents c3d4d84 + 3614f18 commit 3057309

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

Android.bp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,13 @@ aidl_library {
105105

106106
cc_library_headers {
107107
name: "libandroid_headers_private",
108+
host_supported: true,
108109
export_include_dirs: ["include/private"],
110+
target: {
111+
windows: {
112+
enabled: true,
113+
},
114+
},
109115
}
110116

111117
filegroup {

include/android/choreographer.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,19 @@
4848
#ifndef ANDROID_CHOREOGRAPHER_H
4949
#define ANDROID_CHOREOGRAPHER_H
5050

51+
#include <stddef.h>
5152
#include <stdint.h>
5253
#include <sys/cdefs.h>
5354

55+
// This file may also be built on glibc or on Windows/MacOS libc's, so no-op
56+
// and deprecated definitions are provided.
57+
#if !defined(__INTRODUCED_IN)
58+
#define __INTRODUCED_IN(__api_level) /* nothing */
59+
#endif
60+
#if !defined(__DEPRECATED_IN)
61+
#define __DEPRECATED_IN(__api_level) __attribute__((__deprecated__))
62+
#endif
63+
5464
__BEGIN_DECLS
5565

5666
struct AChoreographer;

0 commit comments

Comments
 (0)