another attempt at fixing the SDK build.

Change-Id: I2b96cf7d046b694b232f0699257e4e0608fda660
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 @@
     HAL_TRANSFORM_ROT_270   = 0x07,
 };
 
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* SYSTEM_CORE_INCLUDE_ANDROID_GRAPHICS_H */