diff options
Diffstat (limited to 'deps/v8/src/v8dll-main.cc')
-rw-r--r-- | deps/v8/src/v8dll-main.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/deps/v8/src/v8dll-main.cc b/deps/v8/src/v8dll-main.cc index 3d4b3a379..49d868957 100644 --- a/deps/v8/src/v8dll-main.cc +++ b/deps/v8/src/v8dll-main.cc @@ -1,4 +1,4 @@ -// Copyright 2010 the V8 project authors. All rights reserved. +// Copyright 2011 the V8 project authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: @@ -25,10 +25,14 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -#include <windows.h> - +// The GYP based build ends up defining USING_V8_SHARED when compiling this +// file. +#undef USING_V8_SHARED #include "../include/v8.h" +#ifdef WIN32 +#include <windows.h> // NOLINT + extern "C" { BOOL WINAPI DllMain(HANDLE hinstDLL, DWORD dwReason, @@ -37,3 +41,4 @@ BOOL WINAPI DllMain(HANDLE hinstDLL, return TRUE; } } +#endif |