annotate ext/sord/src/zix/digest.h @ 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 |
b32c68f08ec0 |
children |
|
rev |
line source |
cannam@226
|
1 /*
|
cannam@226
|
2 Copyright 2012 David Robillard <http://drobilla.net>
|
cannam@226
|
3
|
cannam@226
|
4 Permission to use, copy, modify, and/or distribute this software for any
|
cannam@226
|
5 purpose with or without fee is hereby granted, provided that the above
|
cannam@226
|
6 copyright notice and this permission notice appear in all copies.
|
cannam@226
|
7
|
cannam@226
|
8 THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
cannam@226
|
9 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
cannam@226
|
10 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
cannam@226
|
11 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
cannam@226
|
12 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
cannam@226
|
13 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
cannam@226
|
14 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
cannam@226
|
15 */
|
cannam@226
|
16
|
cannam@226
|
17 #ifndef ZIX_DIGEST_H
|
cannam@226
|
18 #define ZIX_DIGEST_H
|
cannam@226
|
19
|
cannam@226
|
20 #include <stddef.h>
|
cannam@226
|
21 #include <stdint.h>
|
cannam@226
|
22
|
cannam@245
|
23 #include "common.h"
|
cannam@226
|
24
|
cannam@226
|
25 #ifdef __cplusplus
|
cannam@226
|
26 extern "C" {
|
cannam@226
|
27 #endif
|
cannam@226
|
28
|
cannam@226
|
29 ZIX_API uint32_t
|
cannam@226
|
30 zix_digest_start(void);
|
cannam@226
|
31
|
cannam@226
|
32 ZIX_API uint32_t
|
cannam@226
|
33 zix_digest_add(uint32_t hash, const void* buf, const size_t len);
|
cannam@226
|
34
|
cannam@226
|
35 #ifdef __cplusplus
|
cannam@226
|
36 } /* extern "C" */
|
cannam@226
|
37 #endif
|
cannam@226
|
38
|
cannam@226
|
39 #endif /* ZIX_DIGEST_H */
|