aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/api/testdata/link-dynamiclibs-staticlibs/dynamic1.cpp
blob: 18842f1052aaf8ce1c379e5a8a3174953043ba4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>

#if defined(_WIN32) || defined(WIN32)
#   define EXPORT __declspec(dllexport)
#   define IMPORT __declspec(dllimport)
#else
#   define EXPORT
#   define IMPORT
#endif

IMPORT void static1_hello();

EXPORT int dynamic1_hello()
{
    static1_hello();
    puts("dynamic1 says hello!");
    return 0;
}