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.
This commit is contained in:
1 parent
fc5d23212f
commit
e79d4932ea
10 files changed
+17
-17
No files matched your search
+1
-1
@@ -1,5 +1,5 @@
|
||||
/* See LICENSE file for copyright and license details. */
|
||||
#ifdef __linux__
|
||||
#if defined(__linux__)
|
||||
#include <err.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
Reference in new issue
Block a user