Ignore:
Timestamp:
Oct 24, 2011, 9:23:36 PM (14 years ago)
Author:
dmik
Message:

Common compiler warnings and errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/src/kernel32/winexepeldr.cpp

    r21716 r21737  
    1919#include <string.h>
    2020#include <stdlib.h>
     21#ifndef __GNUC__
    2122#include <iostream.h>
    2223#include <fstream.h>
     24#endif
    2325#include <misc.h>
    2426#include <win32type.h>
     
    5355//Called by ring 3 pe loader to create win32 executable
    5456//PE.EXE command line options:
    55 //   /OPT:[x1=y,x2=z,..]         
     57//   /OPT:[x1=y,x2=z,..]
    5658//   x = CURDIR    -> set current directory to y
    5759//   (not other options available at this time)
    5860//******************************************************************************
    5961DWORD WIN32API CreateWin32PeLdrExe(char *szFileName, char *szCmdLine,
    60                                    char *peoptions, 
     62                                   char *peoptions,
    6163                                   ULONG reservedMem, ULONG ulPEOffset,
    6264                                   BOOL fConsoleApp, BOOL fVioConsole,
     
    118120  free(szFullCmdLine);
    119121
    120   //Init console before loading executable as dlls might want to print 
     122  //Init console before loading executable as dlls might want to print
    121123  //something on the console while being loaded
    122   if(WinExe->isConsoleApp()) 
     124  if(WinExe->isConsoleApp())
    123125  {
    124126      dprintf(("Console application!\n"));
     
    142144  }
    143145  OS2UnsetExceptionHandler(&exceptFrame);
    144  
     146
    145147#ifdef PROFILE
    146148  // Note: after this point, we might start collecting performance
     
    150152  ProfilerEnable(TRUE);
    151153#endif /* PROFILE */
    152  
    153  
     154
     155
    154156  WinExe->start();
    155157
Note: See TracChangeset for help on using the changeset viewer.