请问如下代码是什么意思?谢谢
.h文件
#ifdef WIN32
#include <windows.h>
#ifdef __cplusplus
extern "C" {
#endif
extern int IoAppendItem(ALIST *pList,void *pItem);#ifdef __cplusplus
}
#endif
#else
extern int IoAppendItem();
#endif
#endif
.c文件
int IoAppendItem(pList,pItem)
ALIST *pList;
void *pItem;
{
........
}
问题1:IoAppendItem函数为什么在定义win32和不定义win32的情况下,函数的声明不一样
2|函数定义时为什么是这样的形式:int IoAppendItem(pList,pItem)
ALIST *pList;
void *pItem;
谢谢!