1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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.
This commit is contained in:
spaceface 2021-02-09 10:36:01 +01:00 committed by GitHub
parent 86e6b4f926
commit 4152c704f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 10 deletions

View File

@ -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

View File

@ -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)

View File

@ -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)