From d15fda2c7eb2dd3c36c0f710e9a056ea91ec29ef Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Tue, 26 Mar 2019 18:59:42 -0400 Subject: [PATCH] build/BeBuild.h: Throw an error if the compatibility headers are not included. If this triggers, it means something is using the "build" errors while the build system thinks it is not, which is always an error. Nothing triggers this at present, but some subtle bugs in the build system a while back would have been caught by this. --- headers/build/os/BeBuild.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/headers/build/os/BeBuild.h b/headers/build/os/BeBuild.h index 8fcabb167c..df363c8c3c 100644 --- a/headers/build/os/BeBuild.h +++ b/headers/build/os/BeBuild.h @@ -1 +1,5 @@ +#if !defined(BEOS_BUILD_COMPATIBILITY_H) && !defined(HAIKU_BUILD_COMPATIBILITY_H) +# error "Using build headers without compatibility headers, something is wrong!" +#endif + #include <../os/BeBuild.h>