summaryrefslogtreecommitdiffstats
path: root/test/ninja/ninja-fixture/test1.c
blob: 678461f5083d9523205b1abea028b3e4d6ddbd79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>
#include <stdlib.h>

#ifdef WIN32
#ifdef LIBRARY_BUILD
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT __declspec(dllimport)
#endif
#else
#define DLLEXPORT
#endif

DLLEXPORT extern int library_function(void);

int
main(int argc, char *argv[])
{
    library_function();
    exit(0);
}