Skip to content

Commit 79d6dfa

Browse files
committed
Add missing header includes for gcc 15.2.0 compatibility
- Add <cstdint> to audio/dsp/Converter.h for uint types - Add <cstdint> to audio/linux/DeviceManagerPulseAudio.h - Add <unistd.h> to zlib/gzguts.h for non-Windows platforms gcc 15.2 has stricter requirements for explicit standard header includes and no longer transitively includes <cstdint> for integer types like uint32_t/uint64_t or <unistd.h> for POSIX functions.
1 parent 6fce019 commit 79d6dfa

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

include/cinder/audio/dsp/Converter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "cinder/Export.h"
2727
#include "cinder/audio/Buffer.h"
2828

29+
#include <cstdint>
2930
#include <memory>
3031
#include <algorithm>
3132

include/cinder/audio/linux/DeviceManagerPulseAudio.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#pragma once
2525

2626
#include "cinder/audio/Device.h"
27+
#include <cstdint>
2728

2829
namespace cinder { namespace audio { namespace linux {
2930

src/zlib/gzguts.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
#endif
3131
#include <fcntl.h>
3232

33+
#ifndef _WIN32
34+
# include <unistd.h>
35+
#endif
36+
3337
#ifdef _WIN32
3438
# include <stddef.h>
3539
#endif

0 commit comments

Comments
 (0)