Browse Source

vgui_support: properly EXPORT main entry point

pull/2/head
Alibek Omarov 6 years ago
parent
commit
1f7171462b
  1. 7
      vgui_support/vgui_int.cpp

7
vgui_support/vgui_int.cpp

@ -24,6 +24,7 @@ from your version. @@ -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 ) @@ -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;

Loading…
Cancel
Save