Private
Public Access
2
0

mraa.c: use #if defined() for platforms

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2015-07-31 11:18:24 +01:00
parent c9cfb42326
commit 7c5972ad15

View File

@@ -119,7 +119,7 @@ mraa_init()
if (plat != NULL)
plat->platform_type = platform_type;
#ifdef USBPLAT
#if defined(USBPLAT)
// This is a platform extender so create null base platform if one doesn't already exist
if (plat == NULL) {
plat = (mraa_board_t*) calloc(1, sizeof(mraa_board_t));