A libmapi client does this:
#include <libmapi/libmapi.h>
#include <stdio.h>
:
If instead you do this:
#include <stdio.h>
#include <libmapi/libmapi.h>
:
this is the result:
In file included from /usr/local/samba/include/ndr.h:291,
from /usr/local/samba/include/dcerpc.h:28,
from /usr/local/samba/include/libmapi/libmapi.h:47,
from junk.c:6:
/usr/local/samba/include/ndr/proto.h:77: error: expected declaration specifiers
or '...' \
before 'comparison_fn_t'
Samba mkproto generates this in ndr/proto.h at line 77:
_PUBLIC_ NTSTATUS ndr_token_retrieve_cmp_fn(struct ndr_token_list **list,
const void *key, \
uint32_t *v, comparison_fn_t _cmp_fn, BOOL _remove_tok);
which I think is correct, or at least, I can see functions in the Samba
tree it probably got the definition from. This function isn't used by OC
anywhere.
It looks like OpenChange maybe needs to include something else because
if I comment out line 77 in ndr/proto.h everything works fine in libmapi
client apps.
--
Dan Shearer
[EMAIL PROTECTED]
_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel