From 9adcf67c9b164d019eebe45279bcaa91b0ce471a Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 20 Mar 2024 14:23:40 +0100 Subject: Drop C/C++ DEBUG macro ...(that was defined iff OSL_DEBUG_LEVEL >= 2) and replace its uses with OSL_DEBUG_LEVEL directly Change-Id: I807c15a02cc8ced9852287df0afb4808761d19d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165067 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- soltools/mkdepend/def.h | 2 +- soltools/mkdepend/main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'soltools') diff --git a/soltools/mkdepend/def.h b/soltools/mkdepend/def.h index bd06c5f01378..0dfb5638eddf 100644 --- a/soltools/mkdepend/def.h +++ b/soltools/mkdepend/def.h @@ -77,7 +77,7 @@ in this Software without prior written authorization from the X Consortium. #define ELIFFALSE 16 /* pseudo value --- never matched */ #define ELIFGUESSFALSE 19 /* pseudo value --- never matched */ -#ifdef DEBUG +#if OSL_DEBUG_LEVEL >= 2 extern int _debugmask; /* * debug levels are: diff --git a/soltools/mkdepend/main.c b/soltools/mkdepend/main.c index 708d2c3b53dd..cf06e9797d94 100644 --- a/soltools/mkdepend/main.c +++ b/soltools/mkdepend/main.c @@ -83,7 +83,7 @@ typedef _W64 int ssize_t; #define USE_CHMOD 1 #endif -#ifdef DEBUG +#if OSL_DEBUG_LEVEL >= 2 int _debugmask; #endif @@ -309,7 +309,7 @@ int main(int argc, char **argv) case 'v': if (endmarker) break; verbose = TRUE; -#ifdef DEBUG +#if OSL_DEBUG_LEVEL >= 2 if (argv[0][2]) _debugmask = atoi(argv[0]+2); #endif -- cgit