Showing with 9 additions and 0 deletions.
  1. +1 −0 src/core/stdc/string.d
  2. +3 −0 src/core/sys/windows/windows.d
  3. +5 −0 win32.mak
1 change: 1 addition & 0 deletions src/core/stdc/string.d
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ pure char* strstr(in char* s1, in char* s2);
char* strtok(char* s1, in char* s2);
char* strerror(int errnum);
pure size_t strlen(in char* s);
char* strdup(in char *s);
3 changes: 3 additions & 0 deletions src/core/sys/windows/windows.d
Original file line number Diff line number Diff line change
Expand Up @@ -3293,4 +3293,7 @@ LPVOID TlsGetValue(DWORD);
BOOL TlsSetValue(DWORD, LPVOID);
BOOL TlsFree(DWORD);

// shellapi.h
HINSTANCE ShellExecuteA(HWND hwnd, LPCSTR lpOperation, LPCSTR lpFile, LPCSTR lpParameters, LPCSTR lpDirectory, INT nShowCmd);
HINSTANCE ShellExecuteW(HWND hwnd, LPCWSTR lpOperation, LPCWSTR lpFile, LPCWSTR lpParameters, LPCWSTR lpDirectory, INT nShowCmd);
}
5 changes: 5 additions & 0 deletions win32.mak
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ MANIFEST= \
src\core\sys\posix\fcntl.d \
src\core\sys\posix\inttypes.d \
src\core\sys\posix\net\if_.d \
src\core\sys\posix\netdb.d \
src\core\sys\posix\poll.d \
src\core\sys\posix\pthread.d \
src\core\sys\posix\pwd.d \
Expand Down Expand Up @@ -421,6 +422,7 @@ IMPORTS=\
$(IMPDIR)\core\sys\posix\dlfcn.di \
$(IMPDIR)\core\sys\posix\fcntl.di \
$(IMPDIR)\core\sys\posix\inttypes.di \
$(IMPDIR)\core\sys\posix\netdb.di \
$(IMPDIR)\core\sys\posix\poll.di \
$(IMPDIR)\core\sys\posix\pthread.di \
$(IMPDIR)\core\sys\posix\pwd.di \
Expand Down Expand Up @@ -670,6 +672,9 @@ $(IMPDIR)\core\sys\posix\fcntl.di : src\core\sys\posix\fcntl.d
$(IMPDIR)\core\sys\posix\inttypes.di : src\core\sys\posix\inttypes.d
$(DMD) -c -d -o- -Isrc -Iimport -Hf$@ $**

$(IMPDIR)\core\sys\posix\netdb.di : src\core\sys\posix\netdb.d
$(DMD) -c -d -o- -Isrc -Iimport -Hf$@ $**

$(IMPDIR)\core\sys\posix\net\if_.di : src\core\sys\posix\net\if_.d
$(DMD) -c -d -o- -Isrc -Iimport -Hf$@ $**

Expand Down