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

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

EXPORT int dynamic1_hello()
{
    TestMe tm;
    tm.hello();
    puts("dynamic1 says hello!");
    return 1;
}