mirror of
https://github.com/lov3b/Pong.git
synced 2024-11-10 07:20:12 +01:00
#ifdef instead of #if defined
This commit is contained in:
parent
aa77344bed
commit
92ab23a737
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user