diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-08-26 13:30:58 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-08-27 07:30:03 +0200 |
commit | c5cad121e5b68c2209fee2aa4611b1b609e2d4cf (patch) | |
tree | 852a287601a111aa1ac7b30a317cb210f8db3c6f /config_host/config_cups.h.in | |
parent | d80363beb10fd43045913bb4b54268b1df26737a (diff) |
Add a CUPS config header
In line with what's done for most optional,
build-time configurable features, use a config
header `config_cups.h` that has a `ENABLE_CUPS` define,
include that header in the relevant source file and use
#if ENABLE_CUPS
for code depending on CUPS being enabled instead of defining
a macro and using
#ifdef ENABLE_CUPS
This also aligns this with the `ENABLE_CPDB` macro used
in the same source file.
Change-Id: I71a5205fd63f9fc18470afcaf808c489ff833319
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172397
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'config_host/config_cups.h.in')
-rw-r--r-- | config_host/config_cups.h.in | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config_host/config_cups.h.in b/config_host/config_cups.h.in new file mode 100644 index 000000000000..5dd46d67ba49 --- /dev/null +++ b/config_host/config_cups.h.in @@ -0,0 +1,14 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#pragma once + +#define ENABLE_CUPS 0 + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |