Minor platform detection fix for ma_dlopen().

This commit is contained in:
David Reid
2022-09-09 16:45:25 +10:00
parent 44ea01c0ab
commit b8bb19eb08
+1 -1
View File
@@ -17702,7 +17702,7 @@ MA_API ma_handle ma_dlopen(ma_context* pContext, const char* filename)
#ifdef _WIN32
/* From MSDN: Desktop applications cannot use LoadPackagedLibrary; if a desktop application calls this function it fails with APPMODEL_ERROR_NO_PACKAGE.*/
#if !defined(WINAPI_FAMILY) || (defined(WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
#if !defined(WINAPI_FAMILY) || (defined(WINAPI_FAMILY) && (defined(WINAPI_FAMILY_DESKTOP_APP) && WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP))
handle = (ma_handle)LoadLibraryA(filename);
#else
/* *sigh* It appears there is no ANSI version of LoadPackagedLibrary()... */