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

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

IMPORT void dynamic2_hello();

EXPORT void static1_hello()
{
    dynamic2_hello();
    puts("static1 says hello!");
}