mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Add an #ifdef __APPLE__ around typedef of foreachfunc to match Apple's
incorrect declaration for ypall_callback in /usr/include/rpcsvc/ypcInt.h . Shouldn't hurt any code since the differences are unsigned long instead of int and void * instead of char *. Removes warning about improper function pointer assignment during compilation.
This commit is contained in:
parent
12f8c4d2e3
commit
f6067ec336
1 changed files with 4 additions and 0 deletions
|
|
@ -68,7 +68,11 @@ nis_mapname (char *map, int *pfix)
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
typedef int (*foreachfunc)(unsigned long, char *, int, char *, int, void *);
|
||||||
|
#else
|
||||||
typedef int (*foreachfunc)(int, char *, int, char *, int, char *);
|
typedef int (*foreachfunc)(int, char *, int, char *, int, char *);
|
||||||
|
#endif
|
||||||
|
|
||||||
struct ypcallback_data {
|
struct ypcallback_data {
|
||||||
PyObject *dict;
|
PyObject *dict;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue