From a03bb2ed226ed1cc94e31865db7f3bb7f40f8871 Mon Sep 17 00:00:00 2001 From: ruslan-ilesik Date: Fri, 2 Aug 2024 22:24:26 +0200 Subject: [PATCH 1/2] fix mp3 example by removing not needed fmt include --- docpages/example_code/mp3.cpp | 1 - include/dpp/autoconfig.h | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 include/dpp/autoconfig.h diff --git a/docpages/example_code/mp3.cpp b/docpages/example_code/mp3.cpp index c1aab7aaac..83cc555116 100644 --- a/docpages/example_code/mp3.cpp +++ b/docpages/example_code/mp3.cpp @@ -1,5 +1,4 @@ #include -#include #include #include diff --git a/include/dpp/autoconfig.h b/include/dpp/autoconfig.h new file mode 100644 index 0000000000..debba215d5 --- /dev/null +++ b/include/dpp/autoconfig.h @@ -0,0 +1,27 @@ +/************************************************************************************ + * + * D++, A Lightweight C++ library for Discord + * + * SPDX-License-Identifier: Apache-2.0 + * Copyright 2021 Craig Edwards and D++ contributors + * (https://github.com/brainboxdotcc/DPP/graphs/contributors) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ************************************************************************************/ + +#pragma once + +#if __cplusplus >= 202002L // c++20 or higher +/* #undef DPP_HAS_FORMAT */ +#endif From 5c511a4a08db8064803ab010ce9bfdc0df074365 Mon Sep 17 00:00:00 2001 From: ruslan-ilesik Date: Fri, 2 Aug 2024 22:26:51 +0200 Subject: [PATCH 2/2] fix autoconfig left from other pr --- include/dpp/autoconfig.h | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 include/dpp/autoconfig.h diff --git a/include/dpp/autoconfig.h b/include/dpp/autoconfig.h deleted file mode 100644 index debba215d5..0000000000 --- a/include/dpp/autoconfig.h +++ /dev/null @@ -1,27 +0,0 @@ -/************************************************************************************ - * - * D++, A Lightweight C++ library for Discord - * - * SPDX-License-Identifier: Apache-2.0 - * Copyright 2021 Craig Edwards and D++ contributors - * (https://github.com/brainboxdotcc/DPP/graphs/contributors) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - ************************************************************************************/ - -#pragma once - -#if __cplusplus >= 202002L // c++20 or higher -/* #undef DPP_HAS_FORMAT */ -#endif