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/directory.cpp

    r21720 r21737  
    3030#include <os2win.h>
    3131#include <stdlib.h>
     32#include <string.h>
     33#ifdef __GNUC__
     34#include <alloca.h>
     35#endif
    3236#include <unicode.h>
    3337#include <heapstring.h>
     
    3539#include "initterm.h"
    3640#include <win/file.h>
    37 #include <string.h>
    3841#include "oslibdos.h"
    3942#include "profile.h"
     
    204207       (len != 1) )
    205208  {
    206     LPSTR lpTemp = (LPSTR)_alloca(len);
     209    LPSTR lpTemp = (LPSTR)alloca(len);
    207210    lstrcpynA(lpTemp,
    208211              lpstrDirectory,
     
    269272       (lpstrDirectory[len - 1] == '/') )
    270273  {
    271     LPSTR lpTemp = (LPSTR)_alloca(len);
     274    LPSTR lpTemp = (LPSTR)alloca(len);
    272275    lstrcpynA(lpTemp,
    273276              lpstrDirectory,
     
    533536       (lpstrDirectory[len - 1] == '/') )
    534537  {
    535     LPSTR lpTemp = (LPSTR)_alloca(len);
     538    LPSTR lpTemp = (LPSTR)alloca(len);
    536539    lstrcpynA(lpTemp,
    537540              lpstrDirectory,
Note: See TracChangeset for help on using the changeset viewer.