こんにちは、私はgccを使用してCプログラムをコンパイルしようとしましたが、このエラーが発生します:
timerc.c:関数'timer_'内:timerc.c:32:16:エラー:'Time_Struct'のストレージサイズが不明です
これがプログラムです:
#include <sys/types.h>
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# if HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif
void timer_(long *UnixSysTime)
{
int dummy;
struct timeb Time_Struct;
dummy=ftime(&Time_Struct);
*UnixSysTime=Time_Struct.time;
}