OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 #ifndef ENCODINGS_COMPACT_LANG_DET_WIN_CLD_COMMANDLINEFLAGS_H_ | 5 #ifndef ENCODINGS_COMPACT_LANG_DET_WIN_CLD_COMMANDLINEFLAGS_H_ |
6 #define ENCODINGS_COMPACT_LANG_DET_WIN_CLD_COMMANDLINEFLAGS_H_ | 6 #define ENCODINGS_COMPACT_LANG_DET_WIN_CLD_COMMANDLINEFLAGS_H_ |
7 | 7 |
8 #if !defined(CLD_WINDOWS) | 8 #if !defined(CLD_WINDOWS) |
9 | 9 |
10 #include "base/commandlineflags.h" | 10 #include "base/commandlineflags.h" |
11 | 11 |
12 #else | 12 #else |
13 | 13 |
14 #undef DEFINE_bool | 14 #undef DEFINE_bool |
15 #define DEFINE_bool(name, default_value, comment) \ | 15 #define DEFINE_bool(name, default_value, comment) \ |
16 const bool FLAGS_##name = default_value; | 16 const bool FLAGS_##name = default_value; |
17 #undef DEFINE_int32 | 17 #undef DEFINE_int32 |
18 #define DEFINE_int32(name, default_value, comment) \ | 18 #define DEFINE_int32(name, default_value, comment) \ |
19 const int32 FLAGS_##name = default_value; | 19 const int32 FLAGS_##name = default_value; |
| 20 #undef DEFINE_string |
| 21 #define DEFINE_string(name, default_value, comment) \ |
| 22 const string FLAGS_##name = default_value; |
20 | 23 |
21 #undef DECLARE_bool | 24 #undef DECLARE_bool |
22 #define DECLARE_bool(name) extern const bool FLAGS_##name; | 25 #define DECLARE_bool(name) extern const bool FLAGS_##name; |
23 #undef DECLARE_int32 | 26 #undef DECLARE_int32 |
24 #define DECLARE_int32(name) extern int32 FLAGS_##name; | 27 #define DECLARE_int32(name) extern int32 FLAGS_##name; |
| 28 #undef DECLARE_string |
| 29 #define DECLARE_string(name) extern string FLAGS_##name; |
| 30 |
25 | 31 |
26 #endif | 32 #endif |
27 | 33 |
28 #endif // ENCODINGS_COMPACT_LANG_DET_WIN_CLD_COMMANDLINEFLAGS_H_ | 34 #endif // ENCODINGS_COMPACT_LANG_DET_WIN_CLD_COMMANDLINEFLAGS_H_ |
OLD | NEW |