Finally finish with MinGW building (linking still has some issues shush)

This commit is contained in:
wuggy 2026-04-18 01:02:51 -07:00
commit 854f39b4ab
32 changed files with 104 additions and 19 deletions

View file

@ -5,7 +5,7 @@
* accompanying file LICENSE for details.
*/
#define NOMINMAX
#include <stdlib.h>
#include <initguid.h>
#include <windows.h>
#include <mmdeviceapi.h>

View file

@ -20,6 +20,10 @@
#include "cubeb/cubeb.h"
#include "cubeb-internal.h"
#if defined(__MINGW32__)
#define _snprintf_s(dest, size, count, ...) snprintf(dest, size, __VA_ARGS__)
#endif
/* This is missing from the MinGW headers. Use a safe fallback. */
#if !defined(MEMORY_ALLOCATION_ALIGNMENT)
#define MEMORY_ALLOCATION_ALIGNMENT 16