mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-11 07:37:52 +00:00
vgui_support: properly EXPORT main entry point
This commit is contained in:
parent
511d728337
commit
1f7171462b
@ -24,6 +24,7 @@ from your version.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "vgui_main.h"
|
#include "vgui_main.h"
|
||||||
|
#include "xash3d_types.h"
|
||||||
namespace vgui_support {
|
namespace vgui_support {
|
||||||
|
|
||||||
vguiapi_t *g_api;
|
vguiapi_t *g_api;
|
||||||
@ -108,11 +109,7 @@ void *VGui_GetPanel( void )
|
|||||||
#define InitAPI InitVGUISupportAPI
|
#define InitAPI InitVGUISupportAPI
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
extern "C" EXPORT void InitAPI(vguiapi_t * api)
|
||||||
extern "C" void _declspec( dllexport ) InitAPI(vguiapi_t * api)
|
|
||||||
#else
|
|
||||||
extern "C" void InitAPI(vguiapi_t * api)
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
g_api = api;
|
g_api = api;
|
||||||
g_api->Startup = VGui_Startup;
|
g_api->Startup = VGui_Startup;
|
||||||
|
Loading…
Reference in New Issue
Block a user