base: common_plugin.h define KRB5_CALLCONV / KRB5_LIB_CALL
common_plugin.h is expected to be usable on its own. For backward compatibility, restore the definitions of KRB5_CALLCONV and KRB5_LIB_CALL. Change-Id: I6d2239f91ab48b9a6b71816b5221807382dc5914
This commit is contained in:

committed by
Nico Williams

parent
d4c0d34548
commit
33bb2479b9
@@ -37,19 +37,25 @@
|
||||
#define HEIMDAL_BASE_COMMON_PLUGIN_H
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifndef HEIM_CALLCONV
|
||||
#define HEIM_CALLCONV __stdcall
|
||||
#endif
|
||||
#ifndef HEIM_LIB_CALL
|
||||
#define HEIM_LIB_CALL __stdcall
|
||||
#endif
|
||||
# ifndef HEIM_CALLCONV
|
||||
# define HEIM_CALLCONV __stdcall
|
||||
# endif
|
||||
# ifndef HEIM_LIB_CALL
|
||||
# define HEIM_LIB_CALL __stdcall
|
||||
# endif
|
||||
#else
|
||||
#ifndef HEIM_CALLCONV
|
||||
#define HEIM_CALLCONV
|
||||
# ifndef HEIM_CALLCONV
|
||||
# define HEIM_CALLCONV
|
||||
# endif
|
||||
# ifndef HEIM_LIB_CALL
|
||||
# define HEIM_LIB_CALL
|
||||
# endif
|
||||
#endif
|
||||
#ifndef HEIM_LIB_CALL
|
||||
#define HEIM_LIB_CALL
|
||||
#ifndef KRB5_CALLCONV
|
||||
# define KRB5_CALLCONV HEIM_CALLCONV
|
||||
#endif
|
||||
#ifndef KRB5_LIB_CALL
|
||||
# define KRB5_LIB_CALL HEIM_LIB_CALL
|
||||
#endif
|
||||
|
||||
/* For krb5 plugins, this is a krb5_context */
|
||||
|
Reference in New Issue
Block a user