Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
/ druntime Public archive
6 changes: 3 additions & 3 deletions src/core/stdc/stdlib.d
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ else
// functions using these already have to be @trusted, allowing them to
// call @system stuff anyway.
///
void* malloc(size_t size) pure;
void* malloc(size_t size);
///
void* calloc(size_t nmemb, size_t size) pure;
void* calloc(size_t nmemb, size_t size);
///
void* realloc(void* ptr, size_t size) pure;
void* realloc(void* ptr, size_t size);
///
void free(void* ptr);

Expand Down
2 changes: 1 addition & 1 deletion src/core/sys/posix/iconv.d
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ iconv_t iconv_open (in char* tocode, in char* fromcode);
/// Convert at most *INBYTESLEFT bytes from *INBUF according to the
/// code conversion algorithm specified by CD and place up to
/// *OUTBYTESLEFT bytes in buffer at *OUTBUF.
size_t iconv (iconv_t cd, char** inbuf,
size_t iconv (iconv_t cd, in char** inbuf,
size_t* inbytesleft,
char** outbuf,
size_t* outbytesleft);
Expand Down
12 changes: 6 additions & 6 deletions src/core/sys/posix/stdlib.d
Original file line number Diff line number Diff line change
Expand Up @@ -122,42 +122,42 @@ version( CRuntime_Glibc )
int setenv(in char*, in char*, int);
int unsetenv(in char*);

void* valloc(size_t) pure; // LEGACY non-standard
void* valloc(size_t); // LEGACY non-standard
}
else version( Darwin )
{
int setenv(in char*, in char*, int);
int unsetenv(in char*);

void* valloc(size_t) pure; // LEGACY non-standard
void* valloc(size_t); // LEGACY non-standard
}
else version( FreeBSD )
{
int setenv(in char*, in char*, int);
int unsetenv(in char*);

void* valloc(size_t) pure; // LEGACY non-standard
void* valloc(size_t); // LEGACY non-standard
}
else version( OpenBSD )
{
int setenv(in char*, in char*, int);
int unsetenv(in char*);

void* valloc(size_t) pure; // LEGACY non-standard
void* valloc(size_t); // LEGACY non-standard
}
else version( CRuntime_Bionic )
{
int setenv(in char*, in char*, int);
int unsetenv(in char*);

void* valloc(size_t) pure;
void* valloc(size_t);
}
else version( Solaris )
{
int setenv(in char*, in char*, int);
int unsetenv(in char*);

void* valloc(size_t) pure; // LEGACY non-standard
void* valloc(size_t); // LEGACY non-standard
}

//
Expand Down
5 changes: 0 additions & 5 deletions src/rt/monitor_.d
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,6 @@ version (Windows)
{
pragma(lib, "snn.lib");
}
else version (CRuntime_Microsoft)
{
pragma(lib, "libcmt.lib");
pragma(lib, "oldnames.lib");
}
import core.sys.windows.windows;

alias Mutex = CRITICAL_SECTION;
Expand Down
3 changes: 3 additions & 0 deletions win64.mak
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ DRUNTIME_BASE=druntime$(MODEL)
DRUNTIME=lib\$(DRUNTIME_BASE).lib
GCSTUB=lib\gcstub$(MODEL).obj

# do not preselect a C runtime (extracted from the line above to make the auto tester happy)
CFLAGS=$(CFLAGS) /Zl

DOCFMT=

target : import copydir copy $(DRUNTIME) $(GCSTUB)
Expand Down