[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Making krb5.h C++ friendly
Hi Fred,
There is a 1.0.2RC2 in the snapshots directory, does that contain the
fixes you need ?
Love
23 okt 2007 kl. 18.39 skrev Zeqing (Fred) Xia:
>
> Hi,
>
> In my build environment krb5.h header cannot compile with g++ (3.4.5).
> I did put krb5.h in extern "C" {..} bracket.
>
> I made the following changes to work around the problem. Of course my
> program is limited in its usage of krb5 structures and functions. The
> work-around probably will fail for some other programs. But I wonder
> if anyone have similar issues and if it is appropriate to make krb5.h
> itself more friendly to a c++ compiler.
>
> Thanks.
>
>
>
> Fred
>
>
> 78,81c78,81
> < struct krb5_digest_data;
> < typedef struct krb5_digest_data *krb5_digest;
> < struct krb5_ntlm_data;
> < typedef struct krb5_ntlm_data *krb5_ntlm;
> ---
>> struct krb5_digest;
>> typedef struct krb5_digest *krb5_digest;
>> struct krb5_ntlm;
>> typedef struct krb5_ntlm *krb5_ntlm;
> 83,84c83
> < struct krb5_pac;
> < //typedef struct krb5_pac_data *krb5_pac;
> ---
>> typedef struct krb5_pac *krb5_pac;
> 86,87c85,86
> < typedef struct krb5_rd_req_in_ctx_data *krb5_rd_req_in_ctx;
> < typedef struct krb5_rd_req_out_ctx_data *krb5_rd_req_out_ctx;
> ---
>> typedef struct krb5_rd_req_in_ctx *krb5_rd_req_in_ctx;
>> typedef struct krb5_rd_req_out_ctx *krb5_rd_req_out_ctx;
> 757c756
> < typedef struct krb5_sendto_ctx_data *krb5_sendto_ctx;
> ---
>> typedef struct krb5_sendto_ctx *krb5_sendto_ctx;