From e38b5faa9e936597a81aa8233ab7a4038de96881 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 20 Dec 2025 18:35:32 -0500 Subject: Use concise preprocessor directives --- test/cpp/test_build.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/cpp/test_build.cpp b/test/cpp/test_build.cpp index 73868a4..19e8e56 100644 --- a/test/cpp/test_build.cpp +++ b/test/cpp/test_build.cpp @@ -1,7 +1,7 @@ // Copyright 2022 David Robillard // SPDX-License-Identifier: ISC -#if defined(__clang__) +#ifdef __clang__ _Pragma("clang diagnostic push") _Pragma("clang diagnostic ignored \"-Wold-style-cast\"") _Pragma("clang diagnostic ignored \"-Wzero-as-null-pointer-constant\"") @@ -47,7 +47,7 @@ main() return 0; } -#if defined(__clang__) +#ifdef __clang__ _Pragma("clang diagnostic pop") #elif defined(__GNUC__) _Pragma("GCC diagnostic pop") -- cgit v1.2.1