summaryrefslogtreecommitdiffstats
path: root/tests/auto/qlibrary/lib/mylib.c
blob: 5e98362ed565e8342b6a28d3c7974f39bf9a7dcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <qglobal.h>

#if defined(Q_CC_MSVC) || defined(Q_CC_MSVC_NET) || defined(Q_CC_BOR) || defined(Q_OS_SYMBIAN)
#define LIB_EXPORT __declspec(dllexport)
#else
#define LIB_EXPORT
#endif

#if defined(Q_CC_BOR)
# define BORLAND_STDCALL __stdcall
#else
# define BORLAND_STDCALL
#endif

LIB_EXPORT int BORLAND_STDCALL mylibversion()
{
    return 1;
}