зеркало из https://github.com/mozilla/pjs.git
Fix bug #3405. Thanks to sfraser's research we discovered that there was a nasty problem caused by mactime.c including xp_mcom.h (added by brade on 3/3) causing ctime to be redefined as macctime. This is bad since macctime calls ctime (can you say recursion, recusrion, recusrsion...). Fix was to add an #undef for ctime after including xp_mcom.h and sacrificing a purple dinosaur.
This commit is contained in:
Родитель
cf3eacc9e4
Коммит
417581861e
|
@ -39,6 +39,8 @@ _END_C_LIB_DECL
|
|||
#endif
|
||||
|
||||
#include "xp_mcom.h" /* prototypes for GetTimeMac, Mactime, Macmktime, Macctime, Maclocaltime, Macgmtime */
|
||||
#undef ctime
|
||||
|
||||
// Because serial port and SLIP conflict with ReadXPram calls,
|
||||
// we cache the call here
|
||||
// The symptoms are the
|
||||
|
|
Загрузка…
Ссылка в новой задаче