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
|
#define HEIMDAL_BASE_COMMON_PLUGIN_H
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#ifndef HEIM_CALLCONV
|
# ifndef HEIM_CALLCONV
|
||||||
#define HEIM_CALLCONV __stdcall
|
# define HEIM_CALLCONV __stdcall
|
||||||
#endif
|
# endif
|
||||||
#ifndef HEIM_LIB_CALL
|
# ifndef HEIM_LIB_CALL
|
||||||
#define HEIM_LIB_CALL __stdcall
|
# define HEIM_LIB_CALL __stdcall
|
||||||
#endif
|
# endif
|
||||||
#else
|
#else
|
||||||
#ifndef HEIM_CALLCONV
|
# ifndef HEIM_CALLCONV
|
||||||
#define HEIM_CALLCONV
|
# define HEIM_CALLCONV
|
||||||
|
# endif
|
||||||
|
# ifndef HEIM_LIB_CALL
|
||||||
|
# define HEIM_LIB_CALL
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#ifndef HEIM_LIB_CALL
|
#ifndef KRB5_CALLCONV
|
||||||
#define HEIM_LIB_CALL
|
# define KRB5_CALLCONV HEIM_CALLCONV
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef KRB5_LIB_CALL
|
||||||
|
# define KRB5_LIB_CALL HEIM_LIB_CALL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* For krb5 plugins, this is a krb5_context */
|
/* For krb5 plugins, this is a krb5_context */
|
||||||
|
Reference in New Issue
Block a user