Changeset 5502 in vbox
- Timestamp:
- Oct 25, 2007 10:42:02 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/nsprpub/pr/src/io/prlog.c
r5057 r5502 49 49 * 04/10/2000 IBM Corp. Added DebugBreak() definitions for OS/2 50 50 */ 51 52 /* @todo cannot currently build with VBOX defined on linux platforms... */53 #if defined(VBOX) && !defined(XP_OS2)54 #undef VBOX55 #endif56 51 57 52 #if defined(VBOX) && defined(DEBUG) … … 413 408 { 414 409 #ifdef _PR_USE_STDIO_FOR_LOGGING 410 415 411 FILE *newLogFile; 416 412 417 413 #if defined(VBOX) && defined(DEBUG) 418 if ( strcmp( file, "IPRT") == 0) 419 { 414 if (strcmp(file, "IPRT") == 0) { 420 415 /* initialize VBox Runtime */ 421 416 RTR3Init(false, 0); … … 425 420 #endif 426 421 #ifdef XP_PC 427 if ( strcmp( file, "WinDebug") == 0) 428 { 422 if (strcmp(file, "WinDebug") == 0) { 429 423 newLogFile = WIN32_DEBUG_FILE; 430 424 } … … 453 447 logFile = newLogFile; 454 448 return PR_TRUE; 455 #else 449 450 #else /* _PR_USE_STDIO_FOR_LOGGING */ 451 456 452 PRFileDesc *newLogFile; 453 454 #if defined(VBOX) && defined(DEBUG) 455 if (strcmp(file, "IPRT") == 0) { 456 /* initialize VBox Runtime */ 457 RTR3Init(false, 0); 458 logFile = IPRT_DEBUG_FILE; 459 return PR_TRUE; 460 } 461 #endif 457 462 458 463 newLogFile = PR_Open(file, PR_WRONLY|PR_CREATE_FILE|PR_TRUNCATE, 0666); … … 467 472 } 468 473 return (PRBool) (newLogFile != 0); 474 469 475 #endif /* _PR_USE_STDIO_FOR_LOGGING */ 470 476 }
Note:
See TracChangeset
for help on using the changeset viewer.