From 850fd95273dc17d53db0d97547b6f92cb9081593 Mon Sep 17 00:00:00 2001 From: Tristan Matthews <tristan.matthews@savoirfairelinux.com> Date: Mon, 9 Apr 2012 12:43:08 -0400 Subject: [PATCH] * #9730: cc++: enforce better checks in headers --- daemon/src/cc_config.h | 4 +++- daemon/src/cc_thread.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/daemon/src/cc_config.h b/daemon/src/cc_config.h index 8da77b2325..5f391d0b80 100644 --- a/daemon/src/cc_config.h +++ b/daemon/src/cc_config.h @@ -37,8 +37,10 @@ #ifdef CCPP_PREFIX #include <cc++/config.h> -#else +#elif defined COMMONCPP_PREFIX #include <commoncpp/config.h> +#else +#error No CCGNU2 include directory found. #endif #endif // CC_CONFIG_H_ diff --git a/daemon/src/cc_thread.h b/daemon/src/cc_thread.h index 4af48e2e82..fbbaf277e5 100644 --- a/daemon/src/cc_thread.h +++ b/daemon/src/cc_thread.h @@ -37,8 +37,10 @@ #ifdef CCPP_PREFIX #include <cc++/thread.h> // for mutex -#else +#elif defined COMMONCPP_PREFIX #include <commoncpp/thread.h> // for mutex +#else +#error No CCGNU2 include directory found. #endif #endif // CC_THREAD_H_ -- GitLab