summaryrefslogtreecommitdiff
path: root/components/ram.c
diff options
context:
space:
mode:
authorAaron Marcher <me@drkhsh.at>2018-03-21 12:21:37 +0100
committerAaron Marcher <me@drkhsh.at>2018-03-21 12:21:37 +0100
commit4303c2181e55f4de39f3738b4bd65d20d1695efa (patch)
tree7f49fbc24b6594ecd22655f47a4523242e326cee /components/ram.c
parentc41212f48aa3ee500565d4d3a269a9253a25be09 (diff)
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.
Diffstat (limited to 'components/ram.c')
-rw-r--r--components/ram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/ram.c b/components/ram.c
index 334a203..a1fc3fe 100644
--- a/components/ram.c
+++ b/components/ram.c
@@ -1,5 +1,5 @@
/* See LICENSE file for copyright and license details. */
-#ifdef __linux__
+#if defined(__linux__)
#include <stdio.h>
#include "../util.h"