#ifdef instead of #if defined

This commit is contained in:
= 2024-01-29 21:30:52 +01:00
parent aa77344bed
commit 92ab23a737

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: BSD-2-Clause // SPDX-License-Identifier: BSD-2-Clause
#if defined(__linux__) #ifdef __linux__
#include <filesystem> #include <filesystem>
const char *getLinuxFilePath() { const char *getLinuxFilePath() {
@ -21,7 +21,7 @@ const char *getLinuxFilePath() {
const char *getDefaultFontPath() { const char *getDefaultFontPath() {
#if defined(_WIN32) || defined(_WIN64) #if defined(_WIN32) || defined(_WIN64)
return R"(C:\Windows\Fonts\Arial.ttf)"; return R"(C:\Windows\Fonts\Arial.ttf)";
#elif defined(__linux__) #elifdef __linux__
return getLinuxFilePath(); return getLinuxFilePath();
#elif defined(__APPLE__) || defined(__MACH__) #elif defined(__APPLE__) || defined(__MACH__)
return "/System/Library/Fonts/Supplemental/Arial.ttf"; return "/System/Library/Fonts/Supplemental/Arial.ttf";