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

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: common.gypi: use gyp defines instead of direct compiler flags; _SECURE_ATL conditional handling 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 78499)
+++ 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
Mark Mentovai 2011/03/17 16:45:10 Maybe you can avoid diverging here by #including <
RN 2011/03/17 20:15:11 Well, __sse2_available is supposed to automaticall
#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) {
Mark Mentovai 2011/03/17 16:45:10 This and line 834 should be indented flush with th
RN 2011/03/17 20:15:11 OK - Done.
+ __stosb((unsigned char*)dest, (unsigned char)ci, count);
+ return dest;
+ }
+}
+#endif

Powered by Google App Engine
This is Rietveld 408576698