From ff5abc72fcc459d7eac663e5f8e4d40b28749841 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Fri, 14 Dec 2007 17:59:29 -0200 Subject: [PATCH] registry: XREGISTRY_UNKNOWN needs to be defined even if XREGISTRY isn't enabled In case XREGISTRY isn't enabled, XREGISTRY_UNKNOWN is used but it's not being available. It's now always available. --- include/registry.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/registry.h b/include/registry.h index edd6ef9a7..29e5fdfd3 100644 --- a/include/registry.h +++ b/include/registry.h @@ -12,6 +12,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #ifndef DIX_REGISTRY_H #define DIX_REGISTRY_H +/* + * Result returned from any unsuccessful lookup + */ +#define XREGISTRY_UNKNOWN "" + #ifdef XREGISTRY #include "resource.h" @@ -35,11 +40,6 @@ const char *LookupEventName(int event); const char *LookupErrorName(int error); const char *LookupResourceName(RESTYPE rtype); -/* - * Result returned from any unsuccessful lookup - */ -#define XREGISTRY_UNKNOWN "" - /* * Setup and teardown */