summaryrefslogtreecommitdiffstats
path: root/include/system
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-08-11 22:35:31 -0700
committerMathias Agopian <mathias@google.com>2011-08-11 22:35:31 -0700
commitc9b06951e0349244fdca7401e7bcc54c538dce62 (patch)
tree02a60f1ce4afa9a40960a91606242f1d2d9bd7ec /include/system
parent7934d18aa62af9ab6a7ad6059e03ab24cf5d5e67 (diff)
downloadsystem_core-c9b06951e0349244fdca7401e7bcc54c538dce62.zip
system_core-c9b06951e0349244fdca7401e7bcc54c538dce62.tar.gz
system_core-c9b06951e0349244fdca7401e7bcc54c538dce62.tar.bz2
another attempt at fixing the SDK build.
Change-Id: I2b96cf7d046b694b232f0699257e4e0608fda660
Diffstat (limited to 'include/system')
-rw-r--r--include/system/graphics.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/system/graphics.h b/include/system/graphics.h
index efb2dc1..729e92c 100644
--- a/include/system/graphics.h
+++ b/include/system/graphics.h
@@ -17,9 +17,9 @@
#ifndef SYSTEM_CORE_INCLUDE_ANDROID_GRAPHICS_H
#define SYSTEM_CORE_INCLUDE_ANDROID_GRAPHICS_H
-#include <sys/cdefs.h>
-
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
/*
* If the HAL needs to create service threads to handle graphics related
@@ -116,6 +116,8 @@ enum {
HAL_TRANSFORM_ROT_270 = 0x07,
};
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif /* SYSTEM_CORE_INCLUDE_ANDROID_GRAPHICS_H */