Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(576)

Unified Diff: third_party/hwcplus/include/cutils/properties.h

Issue 252583002: Make it possible to build libhardware. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hwc2
Patch Set: add copyright Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/hwcplus/include/hardware/hardware.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/hwcplus/include/cutils/properties.h
diff --git a/third_party/hwcplus/include/cutils/properties.h b/third_party/hwcplus/include/cutils/properties.h
index 2c70165b054cf7267339891a8e31bbc6c59591ba..66a9c5b8b1ca87f23e558d132ae8818d441765b3 100644
--- a/third_party/hwcplus/include/cutils/properties.h
+++ b/third_party/hwcplus/include/cutils/properties.h
@@ -19,7 +19,16 @@
#include <sys/cdefs.h>
#include <stddef.h>
+#ifdef ANDROID
#include <sys/system_properties.h>
+#else
+#ifndef PROP_NAME_MAX
+#define PROP_NAME_MAX 32
+#endif
+#ifndef PROP_VALUE_MAX
+#define PROP_VALUE_MAX 92
+#endif
+#endif
#ifdef __cplusplus
extern "C" {
« no previous file with comments | « no previous file | third_party/hwcplus/include/hardware/hardware.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698