compiler.h: only use watcom_switch_hack() if necessary
commite3cd70bc46ca477e2e972dc2ab6c6eda928350e9
authorH. Peter Anvin <hpa@zytor.com>
Fri, 24 Feb 2017 01:22:58 +0000 (23 17:22 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 24 Feb 2017 01:22:58 +0000 (23 17:22 -0800)
tree3082e50166e130b7923b25a9d351b374b3e69a0b
parent4d32674144099ae3d88477095b26f6f7fe0d972a
compiler.h: only use watcom_switch_hack() if necessary

Use sizeof() to prevent the compiler from invoking
watcom_switch_hack() unnecessarily.  Hopefully the optimizer would be
smart enough to recognize this inherently, but this is an old compiler
we are dealing with, so make life a little easier for it.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
include/compiler.h