mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
An update to the dylibloader for older inttypes
This #define's older inttypes to their newer versions and #includes <stdint.h> in the generated files. This will help with older glibc/compiler versions using headers generated on newer systems. This closes #46223
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
|
||||
#ifdef PULSEAUDIO_ENABLED
|
||||
extern "C" {
|
||||
extern int initialize_pulse();
|
||||
extern int initialize_pulse(int verbose);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -153,13 +153,18 @@ Error AudioDriverALSA::init_device() {
|
||||
}
|
||||
|
||||
Error AudioDriverALSA::init() {
|
||||
#ifdef DEBUG_ENABLED
|
||||
int dylibloader_verbose = 1;
|
||||
#else
|
||||
int dylibloader_verbose = 0;
|
||||
#endif
|
||||
#ifdef PULSEAUDIO_ENABLED
|
||||
// On pulse enabled systems Alsa will silently use pulse.
|
||||
// It doesn't matter if this fails as that likely means there is no pulse
|
||||
initialize_pulse();
|
||||
initialize_pulse(dylibloader_verbose);
|
||||
#endif
|
||||
|
||||
if (initialize_asound()) {
|
||||
if (initialize_asound(dylibloader_verbose)) {
|
||||
return ERR_CANT_OPEN;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user