common: remove macro for emulator 78/106678/2 accepted/tizen/3.0/common/20161227.101328 accepted/tizen/3.0/ivi/20161226.025029 accepted/tizen/3.0/mobile/20161226.024936 accepted/tizen/3.0/tv/20161226.024951 accepted/tizen/3.0/wearable/20161226.025006 submit/tizen_3.0/20161222.072356
authortaeyoung <ty317.kim@samsung.com>
Thu, 22 Dec 2016 10:53:50 +0000 (19:53 +0900)
committertaeyoung <ty317.kim@samsung.com>
Thu, 22 Dec 2016 10:59:03 +0000 (19:59 +0900)
emulator macro is changed to is_emulator()

Change-Id: I1a225a22c4dd713233fb83f981402b2e8129b7cf
Signed-off-by: taeyoung <ty317.kim@samsung.com>
src/haptic/emulator.c
src/power/power-handler.c

index 3340626..3f9f273 100644 (file)
@@ -174,13 +174,13 @@ static const struct haptic_plugin_ops default_plugin = {
 
 static bool is_valid(void)
 {
-#ifdef EMULATOR
-       _I("Support emulator haptic device");
-       return true;
-#else
+       if (is_emulator()) {
+               _I("Support emulator haptic device");
+               return true;
+       }
+
        _E("Do not support emulator haptic device");
        return false;
-#endif
 }
 
 static const struct haptic_plugin_ops *load(void)
index 7e3f180..1541825 100644 (file)
@@ -294,9 +294,8 @@ static void powerdown(void)
 
        watchdog_notify();
 
-#ifndef EMULATOR
-       unmount_rw_partition();
-#endif
+       if (!is_emulator())
+               unmount_rw_partition();
 }
 
 static void reboot_with_option(int cmd, char *option)