From 00cf267ac7dadf73cd5d65583d401413a18ade93 Mon Sep 17 00:00:00 2001 From: apio Date: Sun, 18 Dec 2022 18:14:48 +0100 Subject: [PATCH] Lock EFIXME and error_string() behind a #define --- luna/include/luna/Result.h | 1 + luna/include/luna/SystemError.h | 5 ++++- luna/src/TarStream.cpp | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/luna/include/luna/Result.h b/luna/include/luna/Result.h index 38143c7e..ed2935e3 100644 --- a/luna/include/luna/Result.h +++ b/luna/include/luna/Result.h @@ -1,4 +1,5 @@ #pragma once +#define _LUNA_SYSTEM_ERROR_EXTENSIONS #include #include #include diff --git a/luna/include/luna/SystemError.h b/luna/include/luna/SystemError.h index 4c93724b..a6aba0c3 100644 --- a/luna/include/luna/SystemError.h +++ b/luna/include/luna/SystemError.h @@ -54,7 +54,10 @@ #define ETIMEDOUT 110 // Connection timed out #define EALREADY 114 // Operation already in progress +#if defined(IN_MOON) || defined(USE_FREESTANDING) || defined(_LUNA_SYSTEM_ERROR_EXTENSIONS) // This one is Luna-specific. #define EFIXME 342 // Functionality not yet implemented -const char* error_string(int error); \ No newline at end of file +const char* error_string(int error); + +#endif \ No newline at end of file diff --git a/luna/src/TarStream.cpp b/luna/src/TarStream.cpp index 70093ac3..ecc85e80 100644 --- a/luna/src/TarStream.cpp +++ b/luna/src/TarStream.cpp @@ -1,3 +1,4 @@ +#define _LUNA_SYSTEM_ERROR_EXTENSIONS #include #include #include