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
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> #include <synchapi.h>
#if (defined(WINAPI_FAMILY_PARTITION) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)) #if (defined(WINAPI_FAMILY_PARTITION) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP))
#define SOKOL_WIN32_NO_MMDEVICE #define SOKOL_WIN32_NO_MMDEVICE
#pragma comment (lib, "WindowsApp.lib") #pragma comment (lib, "WindowsApp")
#else #else
#pragma comment (lib, "kernel32.lib") #pragma comment (lib, "kernel32")
#pragma comment (lib, "ole32.lib") #pragma comment (lib, "ole32")
#if defined(SOKOL_WIN32_NO_MMDEVICE) #if defined(SOKOL_WIN32_NO_MMDEVICE)
#pragma comment (lib, "mmdevapi.lib") #pragma comment (lib, "mmdevapi")
#endif #endif
#endif #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> #include <d3dcompiler.h>
#ifdef _MSC_VER #ifdef _MSC_VER
#if (defined(WINAPI_FAMILY_PARTITION) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)) #if (defined(WINAPI_FAMILY_PARTITION) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP))
#pragma comment (lib, "WindowsApp.lib") #pragma comment (lib, "WindowsApp")
#else #else
#pragma comment (lib, "user32.lib") #pragma comment (lib, "user32")
#pragma comment (lib, "dxgi.lib") #pragma comment (lib, "dxgi")
#pragma comment (lib, "d3d11.lib") #pragma comment (lib, "d3d11")
#pragma comment (lib, "dxguid.lib") #pragma comment (lib, "dxguid")
#endif #endif
#endif #endif
#elif defined(SOKOL_METAL) #elif defined(SOKOL_METAL)

View File

@ -277,7 +277,7 @@ $c_common_macros
#define __IRQHANDLER __declspec(naked) #define __IRQHANDLER __declspec(naked)
#include <dbghelp.h> #include <dbghelp.h>
#pragma comment(lib, "Dbghelp.lib") #pragma comment(lib, "Dbghelp")
extern wchar_t **_wenviron; extern wchar_t **_wenviron;
#elif !defined(SRWLOCK_INIT) #elif !defined(SRWLOCK_INIT)