sokol: remove `.lib` extensions in `#pragma` directives (#8639)
fixes tcc on windows - this kind of fix has been done several times in the past, and should probably be upstreamed to sokol soon to prevent things from breaking every time we update the headers.pull/8652/head
parent
86e6b4f926
commit
4152c704f3
|
@ -487,12 +487,12 @@ inline void saudio_setup(const saudio_desc& desc) { return saudio_setup(&desc);
|
|||
#include <synchapi.h>
|
||||
#if (defined(WINAPI_FAMILY_PARTITION) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP))
|
||||
#define SOKOL_WIN32_NO_MMDEVICE
|
||||
#pragma comment (lib, "WindowsApp.lib")
|
||||
#pragma comment (lib, "WindowsApp")
|
||||
#else
|
||||
#pragma comment (lib, "kernel32.lib")
|
||||
#pragma comment (lib, "ole32.lib")
|
||||
#pragma comment (lib, "kernel32")
|
||||
#pragma comment (lib, "ole32")
|
||||
#if defined(SOKOL_WIN32_NO_MMDEVICE)
|
||||
#pragma comment (lib, "mmdevapi.lib")
|
||||
#pragma comment (lib, "mmdevapi")
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -2538,12 +2538,12 @@ inline void sg_init_pass(sg_pass pass_id, const sg_pass_desc& desc) { return sg_
|
|||
#include <d3dcompiler.h>
|
||||
#ifdef _MSC_VER
|
||||
#if (defined(WINAPI_FAMILY_PARTITION) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP))
|
||||
#pragma comment (lib, "WindowsApp.lib")
|
||||
#pragma comment (lib, "WindowsApp")
|
||||
#else
|
||||
#pragma comment (lib, "user32.lib")
|
||||
#pragma comment (lib, "dxgi.lib")
|
||||
#pragma comment (lib, "d3d11.lib")
|
||||
#pragma comment (lib, "dxguid.lib")
|
||||
#pragma comment (lib, "user32")
|
||||
#pragma comment (lib, "dxgi")
|
||||
#pragma comment (lib, "d3d11")
|
||||
#pragma comment (lib, "dxguid")
|
||||
#endif
|
||||
#endif
|
||||
#elif defined(SOKOL_METAL)
|
||||
|
|
|
@ -277,7 +277,7 @@ $c_common_macros
|
|||
#define __IRQHANDLER __declspec(naked)
|
||||
|
||||
#include <dbghelp.h>
|
||||
#pragma comment(lib, "Dbghelp.lib")
|
||||
#pragma comment(lib, "Dbghelp")
|
||||
|
||||
extern wchar_t **_wenviron;
|
||||
#elif !defined(SRWLOCK_INIT)
|
||||
|
|
Loading…
Reference in New Issue