Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Unified Diff: chrome/installer/mini_installer/mini_installer.cc

Issue 6676030: WinDDK ATL and MSVC express compatability (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Address OS_WIN ifdefs in source files; update to 78547 and fix merge conflict Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/installer/mini_installer/mini_installer.cc
===================================================================
--- chrome/installer/mini_installer/mini_installer.cc (revision 78547)
+++ chrome/installer/mini_installer/mini_installer.cc (working copy)
@@ -28,6 +28,7 @@
// having the linker merge the sections is saving us ~500 bytes.
#pragma comment(linker, "/MERGE:.rdata=.text")
+#include <intrin.h> // __stosb for MSVC express memset implementation
#include <windows.h>
#include <setupapi.h>
#include <shellapi.h>
@@ -822,3 +823,14 @@
int result = mini_installer::WMain(::GetModuleHandle(NULL));
::ExitProcess(result);
}
+
+// VC Express editions don't come with the memset CRT obj file
+#ifdef COMPILER_MSVC_EXPRESS
+extern "C" {
+#pragma function(memset)
+ void* memset(void *dest, int ci, size_t count) {
+ __stosb((unsigned char*)dest, (unsigned char)ci, count);
+ return dest;
+ }
+}
+#endif

Powered by Google App Engine
This is Rietveld 408576698