summaryrefslogtreecommitdiffstats
path: root/src/windows/identity/plugins/krb4/krb4main.c
diff options
context:
space:
mode:
authorJeffrey Altman <jaltman@secure-endpoints.com>2007-06-22 18:47:16 +0000
committerJeffrey Altman <jaltman@secure-endpoints.com>2007-06-22 18:47:16 +0000
commit65f9b75e71f9ec13c6b0d86a7ddce50f58369a74 (patch)
treeb39c382d9186dfe6c0587d552035c3f1423dbd14 /src/windows/identity/plugins/krb4/krb4main.c
parentf7a95afcc719e5641081451eb30155f365286267 (diff)
downloadkrb5-65f9b75e71f9ec13c6b0d86a7ddce50f58369a74.tar.gz
krb5-65f9b75e71f9ec13c6b0d86a7ddce50f58369a74.tar.xz
krb5-65f9b75e71f9ec13c6b0d86a7ddce50f58369a74.zip
All exports in nidmgr32.dll are declared as __declspec(dllexport)
using the KHMEXP macro in the header files. However, since the same header files are used to declare imports when building applications and plug-ins that use nidmgr32.dll, the KHMEXP macro should switch to __declspec(import) so that the relevant import table entries are created. To make this switch, the source files that go into nidmgr32.dll are compiled with the special macro _NIMLIB_ defined that indicates that the KHMEXP should expand to __declspec(dllexport). In the absence of this macro, KHMEXP will expand to __declspec(dllimport). ticket: 5584 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19618 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/windows/identity/plugins/krb4/krb4main.c')
-rw-r--r--src/windows/identity/plugins/krb4/krb4main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/windows/identity/plugins/krb4/krb4main.c b/src/windows/identity/plugins/krb4/krb4main.c
index 7ab2d71f3..6b1c395b2 100644
--- a/src/windows/identity/plugins/krb4/krb4main.c
+++ b/src/windows/identity/plugins/krb4/krb4main.c
@@ -58,7 +58,7 @@ void exit_krb() {
}
/* called by the NetIDMgr module manager */
-KHMEXP khm_int32 KHMAPI init_module(kmm_module h_module) {
+KHMEXP_EXP khm_int32 KHMAPI init_module(kmm_module h_module) {
khm_int32 rv = KHM_ERROR_SUCCESS;
kmm_plugin_reg pi;
wchar_t buf[256];
@@ -107,7 +107,7 @@ KHMEXP khm_int32 KHMAPI init_module(kmm_module h_module) {
}
/* called by the NetIDMgr module manager */
-KHMEXP khm_int32 KHMAPI exit_module(kmm_module h_module) {
+KHMEXP_EXP khm_int32 KHMAPI exit_module(kmm_module h_module) {
exit_imports();
exit_error_funcs();