summaryrefslogtreecommitdiffstats
path: root/src/ghostscript-test.c
blob: f7101b68e974d7cd2bcc4628a051031fb37652b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
 * This file is part of MXE. See LICENSE.md for licensing information.
 */

#ifdef _WIN32

#include <windows.h>

#ifndef _Windows
# define _Windows
#endif

#ifndef GSDLLEXPORT
# ifdef GS_STATIC_LIB
#  define GSDLLEXPORT
# else
#  define GSDLLEXPORT __declspec(dllimport)
# endif
#endif

#endif  /* _WIN32 */

#include <iapi.h>

void *minst;

int main(int argc, char *argv[])
{
    int code;

    (void)argc;
    (void)argv;

    code = gsapi_new_instance(&minst, 0);
    if (code < 0)
        return 1;

    code = gsapi_exit(minst);
    if (code < 0)
        return 1;

    gsapi_delete_instance(minst);

    return 0;
}