mraa.c: use #if defined() for platforms
authorBrendan Le Foll <brendan.le.foll@intel.com>
Fri, 31 Jul 2015 10:18:24 +0000 (11:18 +0100)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Tue, 8 Sep 2015 13:42:03 +0000 (14:42 +0100)
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/mraa.c

index b701c85..fdff587 100644 (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));