diff --git a/src/libcalamares/DllMacro.h b/src/libcalamares/DllMacro.h index 2eeea331e..8613fa584 100644 --- a/src/libcalamares/DllMacro.h +++ b/src/libcalamares/DllMacro.h @@ -1,5 +1,5 @@ /* === This file is part of Calamares - === - * + * * SPDX-FileCopyrightText: 2014 Teo Mrnjavac * SPDX-FileCopyrightText: 2020 Adriaan de Groot * @@ -76,4 +76,16 @@ #endif #endif +/* + * For private functions that should be public for testing purposes, + * use PRIVATETEST, which is private except when building tests. + */ +#ifndef PRIVATETEST +#if defined( BUILD_AS_TEST ) +#define PRIVATETEST public +#else +#define PRIVATETEST private +#endif +#endif + #endif