Updating so that builds on the Mac will use a SIOUX console window rather than writing to a file (which doesn't work unless running under the debugger for an undetermined reason).

This commit is contained in:
sdagley%netscape.com 1999-01-27 04:11:54 +00:00
parent f065094abf
commit 82d5bff1c1

View File

@ -44,8 +44,10 @@ int fprintf(FILE *stream, const char *fmt, ...)
PR_LogPrint(fmt);
return 0;
}
#define printf PR_LogPrint
/* #define printf PR_LogPrint */
extern void SetupMacPrintfLog(char *logFile);
#include "macstdlibextras.h"
#endif
int failed_already=0;
@ -196,7 +198,10 @@ int main(int argc, char** argv)
PR_Init(PR_USER_THREAD, PR_PRIORITY_NORMAL, 0);
#ifdef XP_MAC
SetupMacPrintfLog("timetest.log");
/* Set up the console */
InitializeSIOUX(true);
/* SetupMacPrintfLog("timetest.log"); */
debug_mode = PR_TRUE;
#endif
/* Testing zero PRTime (the epoch) */
@ -754,6 +759,16 @@ int main(int argc, char** argv)
}
}
#ifdef XP_MAC
if (1)
{
char dummyChar;
printf("Press return to exit\n\n");
scanf("%c", &dummyChar);
}
#endif
if (failed_already) return 1;
else return 0;