2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 09:56:22 +01:00

vgui_support: properly EXPORT main entry point

This commit is contained in:
Alibek Omarov 2019-07-09 04:53:01 +03:00
parent 511d728337
commit 1f7171462b

View File

@ -24,6 +24,7 @@ from your version.
*/
#include "vgui_main.h"
#include "xash3d_types.h"
namespace vgui_support {
vguiapi_t *g_api;
@ -108,11 +109,7 @@ void *VGui_GetPanel( void )
#define InitAPI InitVGUISupportAPI
#endif
#ifdef _WIN32
extern "C" void _declspec( dllexport ) InitAPI(vguiapi_t * api)
#else
extern "C" void InitAPI(vguiapi_t * api)
#endif
extern "C" EXPORT void InitAPI(vguiapi_t * api)
{
g_api = api;
g_api->Startup = VGui_Startup;