projects
/
contrib
/
mraa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10f450b
)
mraa.c: stop C constructor calling mraa_init() in SWIG builds
author
Brendan Le Foll
<brendan.le.foll@intel.com>
Sun, 1 Mar 2015 10:22:13 +0000
(10:22 +0000)
committer
Brendan Le Foll
<brendan.le.foll@intel.com>
Sun, 1 Mar 2015 10:22:14 +0000
(10:22 +0000)
Closes #65
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/mraa.c
patch
|
blob
|
history
diff --git
a/src/mraa.c
b/src/mraa.c
index
e1d07d6
..
5ecbae4
100644
(file)
--- a/
src/mraa.c
+++ b/
src/mraa.c
@@
-55,7
+55,11
@@
mraa_set_log_level(int level)
return MRAA_ERROR_INVALID_PARAMETER;
}
+#if (defined SWIGPYTHON) || (defined SWIG)
+mraa_result_t
+#else
mraa_result_t __attribute__((constructor))
+#endif
mraa_init()
{
if (plat != NULL) {