| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Define the necessary code and global data to look for kDebugOnStart command | 5 // Define the necessary code and global data to look for kDebugOnStart command |
| 6 // line argument. When the command line argument is detected, it invokes the | 6 // line argument. When the command line argument is detected, it invokes the |
| 7 // debugger, if no system-wide debugger is registered, a debug break is done. | 7 // debugger, if no system-wide debugger is registered, a debug break is done. |
| 8 | 8 |
| 9 #ifndef BASE_DEBUG_DEBUG_ON_START_WIN_H_ | 9 #ifndef BASE_DEBUG_DEBUG_ON_START_WIN_H_ |
| 10 #define BASE_DEBUG_DEBUG_ON_START_WIN_H_ | 10 #define BASE_DEBUG_DEBUG_ON_START_WIN_H_ |
| 11 #pragma once | |
| 12 | 11 |
| 13 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 14 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 15 | 14 |
| 16 // This only works on Windows. It's legal to include on other platforms, but | 15 // This only works on Windows. It's legal to include on other platforms, but |
| 17 // will be a NOP. | 16 // will be a NOP. |
| 18 #if defined(OS_WIN) | 17 #if defined(OS_WIN) |
| 19 | 18 |
| 20 #ifndef DECLSPEC_SELECTANY | 19 #ifndef DECLSPEC_SELECTANY |
| 21 #define DECLSPEC_SELECTANY __declspec(selectany) | 20 #define DECLSPEC_SELECTANY __declspec(selectany) |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 #endif // _WIN64 | 74 #endif // _WIN64 |
| 76 | 75 |
| 77 #endif // defined(COMPONENT_BUILD) | 76 #endif // defined(COMPONENT_BUILD) |
| 78 | 77 |
| 79 } // namespace debug | 78 } // namespace debug |
| 80 } // namespace base | 79 } // namespace base |
| 81 | 80 |
| 82 #endif // defined(OS_WIN) | 81 #endif // defined(OS_WIN) |
| 83 | 82 |
| 84 #endif // BASE_DEBUG_DEBUG_ON_START_WIN_H_ | 83 #endif // BASE_DEBUG_DEBUG_ON_START_WIN_H_ |
| OLD | NEW |