2016-07-20 11:18:24 +01:00
|
|
|
/*
|
2016-08-22 20:52:34 +01:00
|
|
|
* This file is part of MXE. See LICENSE.md for licensing information.
|
2016-07-20 11:18:24 +01:00
|
|
|
*/
|
|
|
|
|
2018-05-21 10:59:23 +01:00
|
|
|
#ifdef __WIN32__
|
2016-07-20 11:18:24 +01:00
|
|
|
#include <windows.h>
|
|
|
|
#endif
|
|
|
|
#include <iapi.h>
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
2017-10-10 06:22:37 +01:00
|
|
|
int code;
|
2018-05-21 10:59:23 +01:00
|
|
|
void *minst = NULL;
|
2016-07-20 11:18:24 +01:00
|
|
|
|
2017-10-10 06:22:37 +01:00
|
|
|
(void)argc;
|
|
|
|
(void)argv;
|
2016-07-20 11:18:24 +01:00
|
|
|
|
2017-10-10 06:22:37 +01:00
|
|
|
code = gsapi_new_instance(&minst, 0);
|
|
|
|
if (code < 0)
|
|
|
|
return 1;
|
2016-07-20 11:18:24 +01:00
|
|
|
|
2017-10-10 06:22:37 +01:00
|
|
|
code = gsapi_exit(minst);
|
|
|
|
if (code < 0)
|
|
|
|
return 1;
|
2016-07-20 11:18:24 +01:00
|
|
|
|
2017-10-10 06:22:37 +01:00
|
|
|
gsapi_delete_instance(minst);
|
2016-07-20 11:18:24 +01:00
|
|
|
|
2017-10-10 06:22:37 +01:00
|
|
|
return 0;
|
2016-07-20 11:18:24 +01:00
|
|
|
}
|