Changeset 339
- Timestamp:
- 01/18/10 03:39:24 (2 years ago)
- Files:
-
- branches/dmd-1.x/src/glue.c (modified) (2 diffs)
- trunk/src/glue.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/dmd-1.x/src/glue.c
r304 r339 547 547 #if TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS 548 548 obj_ehsections(); // initialize exception handling sections 549 #else 549 #endif 550 #if TARGET_WINDOS 550 551 objextdef("__acrtused_con"); 551 552 #endif … … 554 555 } 555 556 else if (strcmp(s->Sident, "main") == 0 && linkage == LINKc) 557 { 558 #if TARGET_WINDOS 559 objextdef("__acrtused_con"); // bring in C startup code 560 obj_includelib("snn.lib"); // bring in C runtime library 561 #endif 556 562 s->Sclass = SCglobal; 557 563 } 558 564 else if (func->isWinMain()) 559 565 { trunk/src/glue.c
r326 r339 604 604 #if TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS 605 605 obj_ehsections(); // initialize exception handling sections 606 #else 606 #endif 607 #if TARGET_WINDOS 607 608 objextdef("__acrtused_con"); 608 609 #endif … … 611 612 } 612 613 else if (strcmp(s->Sident, "main") == 0 && linkage == LINKc) 614 { 615 #if TARGET_WINDOS 616 objextdef("__acrtused_con"); // bring in C startup code 617 obj_includelib("snn.lib"); // bring in C runtime library 618 #endif 613 619 s->Sclass = SCglobal; 614 620 } 615 621 else if (func->isWinMain()) 616 622 {
