summaryrefslogtreecommitdiff
path: root/src/vm
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2016-01-25 18:55:32 -0800
committerJan Kotas <jkotas@microsoft.com>2016-01-26 00:10:05 -0800
commit0462be1dde807ddad9238bf90824265d48d831c7 (patch)
tree7a4a02dffcddd3faa7287441048b06b5c842c64d /src/vm
parent82e5fba902043783a9446048317d821860423f8e (diff)
downloadcoreclr-0462be1dde807ddad9238bf90824265d48d831c7.tar.gz
coreclr-0462be1dde807ddad9238bf90824265d48d831c7.tar.bz2
coreclr-0462be1dde807ddad9238bf90824265d48d831c7.zip
Update GC from CoreRT
https://github.com/dotnet/corert/tree/master/src/Native/gc 0dcc350dae128b6fcca6b1ed74b580ed3240460a
Diffstat (limited to 'src/vm')
-rw-r--r--src/vm/gcenv.h6
-rw-r--r--src/vm/gcenv.os.cpp13
2 files changed, 6 insertions, 13 deletions
diff --git a/src/vm/gcenv.h b/src/vm/gcenv.h
index 7ddbe5e46a..c9d07043af 100644
--- a/src/vm/gcenv.h
+++ b/src/vm/gcenv.h
@@ -66,4 +66,10 @@ namespace ETW
} GC_ROOT_KIND;
};
+#ifdef PLATFORM_UNIX
+#define _tcslen wcslen
+#define _tcscpy wcscpy
+#define _tfopen _wfopen
+#endif
+
#endif // GCENV_H_
diff --git a/src/vm/gcenv.os.cpp b/src/vm/gcenv.os.cpp
index 20fb179fe8..e54c3714ef 100644
--- a/src/vm/gcenv.os.cpp
+++ b/src/vm/gcenv.os.cpp
@@ -484,19 +484,6 @@ bool GCToOSInterface::CreateThread(GCThreadFunction function, void* param, GCThr
return true;
}
-// Open a file
-// Parameters:
-// filename - name of the file to open
-// mode - mode to open the file in (like in the CRT fopen)
-// Return:
-// FILE* of the opened file
-FILE* GCToOSInterface::OpenFile(const WCHAR* filename, const WCHAR* mode)
-{
- LIMITED_METHOD_CONTRACT;
-
- return _wfopen(filename, mode);
-}
-
// Initialize the critical section
void CLRCriticalSection::Initialize()
{