Mercurial > hg > piper-cpp
view ext/json11/Makefile @ 295:de5dc40f1830
Include headers needed to compile with GCC 15's -std=gnu23 default
```
In file included from ../piper-vamp-cpp/vamp-json/VampJson.h:55,
from ../piper-vamp-cpp/vamp-server/convert.cpp:36:
../piper-vamp-cpp/vamp-support/PluginHandleMapper.h:69:13: error: ‘uint32_t’ does not name a type
69 | typedef uint32_t Handle;
| ^~~~~~~~
../piper-vamp-cpp/vamp-support/PluginHandleMapper.h:39:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
38 | #include "PluginOutputIdMapper.h"
+++ |+#include <cstdint>
39 |
../piper-vamp-cpp/ext/json11/json11.cpp: In function ‘void json11::dump(const std::string&, std::string&)’:
../piper-vamp-cpp/ext/json11/json11.cpp:95:32: error: ‘uint8_t’ does not name a type
95 | } else if (static_cast<uint8_t>(ch) <= 0x1f) {
| ^~~~~~~
../piper-vamp-cpp/ext/json11/json11.cpp:25:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
24 | #include <cmath>
+++ |+#include <cstdint>
25 | #include <cstdlib>
```
Signed-off-by: Michel Lind <salimma@fedoraproject.org>
author | Michel Lind <salimma@fedoraproject.org> |
---|---|
date | Fri, 24 Jan 2025 11:38:28 -0600 |
parents | d607ae858682 |
children |
line wrap: on
line source
# Environment variable to enable or disable code which demonstrates the behavior change # in Xcode 7 / Clang 3.7, introduced by DR1467 and described here: # https://llvm.org/bugs/show_bug.cgi?id=23812 # Defaults to on in order to act as a warning to anyone who's unaware of the issue. ifneq ($(JSON11_ENABLE_DR1467_CANARY),) CANARY_ARGS = -DJSON11_ENABLE_DR1467_CANARY=$(JSON11_ENABLE_DR1467_CANARY) endif test: json11.cpp json11.hpp test.cpp $(CXX) $(CANARY_ARGS) -O -std=c++11 json11.cpp test.cpp -o test -fno-rtti -fno-exceptions clean: if [ -e test ]; then rm test; fi .PHONY: clean