More robust preprocessor switches
authorAaron Marcher <me@drkhsh.at>
Wed, 21 Mar 2018 11:21:37 +0000 (12:21 +0100)
committerAaron Marcher <me@drkhsh.at>
Wed, 21 Mar 2018 11:21:37 +0000 (12:21 +0100)
commite79d4932ea413c277425ff92c456741e0730c3d6
tree7f49fbc24b6594ecd22655f47a4523242e326cee
parentfc5d23212fdaec8c242db9b25770f290dd287212
More robust preprocessor switches

Replace #ifdef with #if defined() and #elif with #elif defined() as it
should only test if it is defined or not.
components/battery.c
components/cpu.c
components/entropy.c
components/ip.c
components/ram.c
components/swap.c
components/temperature.c
components/uptime.c
components/volume.c
components/wifi.c