Windows: Build test binaries for kadm5
[heimdal.git] / cf / win32.m4
blob5561ad966f9ee2c75c31153012fe3dbde6aff9a0
1 dnl $Id$
2 dnl rk_WIN32_EXPORT buildsymbol symbol-that-export
3 AC_DEFUN([rk_WIN32_EXPORT],[AH_TOP([#ifdef $1
4 #ifndef $2
5 #ifdef _WIN32_
6 #define $2_FUNCTION __declspec(dllexport)
7 #define $2_CALL __stdcall
8 #define $2_VARIABLE __declspec(dllexport)
9 #else
10 #define $2_FUNCTION
11 #define $2_CALL
12 #define $2_VARIABLE
13 #endif
14 #endif
15 #endif
16 ])])