mraa.c: stop C constructor calling mraa_init() in SWIG builds
Closes #65 Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user