Ignore:
Timestamp:
Jul 28, 2010, 8:14:30 PM (15 years ago)
Author:
dmik
Message:

Build minivcrt.lib (accessible through minivcrt.h) that aims at providing MSVCRT-specific functions such as the wide character version of _getcwd() and similar to other runtimes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/msvcrt/environ.c

    r21395 r21398  
    2626#endif
    2727
     28#ifndef __MINIVCRT__
     29
    2830#include "wine/unicode.h"
    2931#include "msvcrt.h"
     
    3234#include "msvcrt/stdlib.h"
    3335
    34 
    3536#include "wine/debug.h"
    3637
    3738WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
     39
     40#else /* !__MINIVCRT__ */
     41
     42#include "minivcrt.h"
     43#include "minivcrt_internal.h"
     44
     45#include "winternl.h"
     46#include "wine/unicode.h"
     47
     48#endif /* !__MINIVCRT__ */
     49
     50#ifndef __MINIVCRT__
    3851
    3952/*********************************************************************
     
    6780}
    6881
     82#endif /* !__MINIVCRT__ */
     83
    6984/*********************************************************************
    7085 *              _wgetenv (MSVCRT.@)
     
    97112  return NULL;
    98113}
     114
     115#ifndef __MINIVCRT__
    99116
    100117/*********************************************************************
     
    130147}
    131148
     149#endif /* !__MINIVCRT__ */
     150
    132151/*********************************************************************
    133152 *              _wputenv (MSVCRT.@)
     
    154173
    155174 ret = !SetEnvironmentVariableW(name, value[0] ? value : NULL);
     175#ifndef __MINIVCRT__
    156176 /* Update the __p__environ array only when already initialized */
    157177 if (MSVCRT__environ)
     
    159179 if (MSVCRT__wenviron)
    160180   MSVCRT__wenviron = msvcrt_SnapshotOfEnvironmentW(MSVCRT__wenviron);
     181#endif /* !__MINIVCRT__ */
    161182 return ret;
    162183}
Note: See TracChangeset for help on using the changeset viewer.