Clear clang warning:
warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] Submitted by: Aaron Prieger <aprieger@llnw.com> Reviewed by: dim Sponsored by: Limelight Networks Differential Revision: https://reviews.freebsd.org/D11166
This commit is contained in:
parent
ac952dd274
commit
4b85e937ef
@ -61,7 +61,12 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#define SOLARIS (defined(sun) && (defined(__SVR4) || defined(__svr4__)))
|
||||
#if (defined(sun) && (defined(__SVR4) || defined(__svr4__)))
|
||||
#define SOLARIS 1
|
||||
#else
|
||||
#define SOLARIS 0
|
||||
#endif
|
||||
|
||||
#if defined(__hpux) || SOLARIS
|
||||
# include <sys/sysmacros.h>
|
||||
# include <sys/stream.h>
|
||||
|
Loading…
Reference in New Issue
Block a user