diff --git a/modules/plugin/base/public/nptypes.h b/modules/plugin/base/public/nptypes.h index ffeffee5c79..a05d3956576 100644 --- a/modules/plugin/base/public/nptypes.h +++ b/modules/plugin/base/public/nptypes.h @@ -67,19 +67,15 @@ /* * BSD/OS ships no header that defines uint32_t, nor bool (for C) - * OpenBSD ships no header that defines uint32_t, but provides bool as a - * macro. + * OpenBSD ships no header that defines uint32_t and using its bool macro is + * unsafe. */ #if defined(bsdi) || defined(OPENBSD) typedef u_int32_t uint32_t; - #if defined(bsdi) #if !defined(__cplusplus) typedef int bool; #endif - #else /* OPENBSD is defined, so use its bool */ - #include - #endif #else /* * FreeBSD defines uint32_t and bool.