mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 04:34:35 +03:00
Use #if defined()
syntax when #elif defined()
is present
This prefers the `#if defined()` syntax over the `#ifdef` variant whenever there's also a `#elif defined()` clause, thus making the multiple branching structure more obvious and the overall use more consistent.
This commit is contained in:
@ -48,7 +48,7 @@ in the source distribution for its full text.
|
||||
#include "Settings.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
#ifdef MAJOR_IN_MKDEV
|
||||
#if defined(MAJOR_IN_MKDEV)
|
||||
#include <sys/mkdev.h>
|
||||
#elif defined(MAJOR_IN_SYSMACROS)
|
||||
#include <sys/sysmacros.h>
|
||||
|
Reference in New Issue
Block a user