summaryrefslogtreecommitdiff
path: root/shared/matrix.h
diff options
context:
space:
mode:
authorGiulio Camuffo <giuliocamuffo@gmail.com>2013-03-28 18:02:42 +0100
committerKristian Høgsberg <krh@bitplanet.net>2013-03-28 14:03:58 -0400
commit7fe01b18d89ad8d59d0c6285d37e70004606b76f (patch)
tree8af75035816811e3af6fae64123edc3aed61de68 /shared/matrix.h
parentb5bae3450c2970d0643d55467de0709bb0790940 (diff)
downloadweston-7fe01b18d89ad8d59d0c6285d37e70004606b76f.tar.gz
sdk: be C++ friendly
This renames the weston_surface's private member to configure_private and externs "C" the headers of the SDK.
Diffstat (limited to 'shared/matrix.h')
-rw-r--r--shared/matrix.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/shared/matrix.h b/shared/matrix.h
index 47354f6a..e5cf636b 100644
--- a/shared/matrix.h
+++ b/shared/matrix.h
@@ -24,6 +24,10 @@
#ifndef WESTON_MATRIX_H
#define WESTON_MATRIX_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
enum weston_matrix_transform_type {
WESTON_MATRIX_TRANSFORM_TRANSLATE = (1 << 0),
WESTON_MATRIX_TRANSFORM_SCALE = (1 << 1),
@@ -71,4 +75,8 @@ inverse_transform(const double *LU, const unsigned *p, float *v);
# define MATRIX_TEST_EXPORT static
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif /* WESTON_MATRIX_H */