John Fortin <[EMAIL PROTECTED]> writes:
> this comes from these lines in misc.c
>
> #ifndef GG_USLEEP_DEFINED
> #error You need to implement ggUSleep() for this system
> #endif
>
> #ifndef GG_CURTIME_DEFINED
> #error You need to implement ggCurTime() for this system
> #endif
>
> GG_USLEEP_DEFINED and GG_CURTIME_DEFINED are in acconfig.h.
>
> /* Define if ggUSleep is a #define in ggi/system.h */
> #undef GG_USLEEP_DEFINED
>
> /* Define if ggCurTime is a #define in ggi/system.h */
> #undef GG_CURTIME_DEFINED
>
> So both ggUSleep and ggCurTime are "undefined"
>
> However, from ggi/system.h
>
> __BEGIN_DECLS
> #define ggUSleep(val) do {struct timeval tv; tv.tv_sec=(val)/1000000;
> tv.tv_usec=(val)%1000000; select(0, NULL, NULL, NULL, &tv);} while(0);
> __END_DECLS
>
> __BEGIN_DECLS
> #define ggCurTime(tv) do{ SYSTEMTIME stim; GetSystemTime(&stim);
> (tv)->tv_sec = stim.wSecond; tv)->tv_usec = stim.wMilliseconds*1000;
> }while(0)
> __END_DECLS
>
> However, even after I #defined these values it didn't work. This is
> because I can find no file which includes acconfig.h anywhere.
These values should get defined in config.h.
Run:
make maintainer-clean ; ./autogen.sh
and try again. If it still doesn't work, please post config.log.
//Marcus
--
-------------------------------+------------------------------------
Marcus Sundberg | http://www.stacken.kth.se/~mackan
Royal Institute of Technology | Phone: +46 707 295404
Stockholm, Sweden | E-Mail: [EMAIL PROTECTED]