Changeset 339

Show
Ignore:
Timestamp:
01/18/10 03:39:24 (2 years ago)
Author:
walter
Message:

so C main can be used

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/dmd-1.x/src/glue.c

    r304 r339  
    547547#if TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS 
    548548        obj_ehsections();   // initialize exception handling sections 
    549 #else 
     549#endif 
     550#if TARGET_WINDOS 
    550551        objextdef("__acrtused_con"); 
    551552#endif 
     
    554555    } 
    555556    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 
    556562        s->Sclass = SCglobal; 
    557  
     563    } 
    558564    else if (func->isWinMain()) 
    559565    { 
  • trunk/src/glue.c

    r326 r339  
    604604#if TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS 
    605605        obj_ehsections();   // initialize exception handling sections 
    606 #else 
     606#endif 
     607#if TARGET_WINDOS 
    607608        objextdef("__acrtused_con"); 
    608609#endif 
     
    611612    } 
    612613    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 
    613619        s->Sclass = SCglobal; 
    614  
     620    } 
    615621    else if (func->isWinMain()) 
    616622    {