Chromium Code Reviews| 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 |