|
61 | 61 |
|
62 | 62 | #include <glog/logging.h> |
63 | 63 |
|
64 | | -#define DECLARE_VARIABLE(type, shorttype, name, tn) \ |
65 | | - namespace fL##shorttype { \ |
66 | | - extern GOOGLE_GLOG_DLL_DECL type FLAGS_##name; \ |
67 | | - } \ |
| 64 | +#define DECLARE_VARIABLE(type, shorttype, name, tn) \ |
| 65 | + namespace fL##shorttype { \ |
| 66 | + extern GLOG_EXPORT type FLAGS_##name; \ |
| 67 | + } \ |
68 | 68 | using fL##shorttype::FLAGS_##name |
69 | | -#define DEFINE_VARIABLE(type, shorttype, name, value, meaning, tn) \ |
70 | | - namespace fL##shorttype { \ |
71 | | - GOOGLE_GLOG_DLL_DECL type FLAGS_##name(value); \ |
72 | | - char FLAGS_no##name; \ |
73 | | - } \ |
| 69 | +#define DEFINE_VARIABLE(type, shorttype, name, value, meaning, tn) \ |
| 70 | + namespace fL##shorttype { \ |
| 71 | + GLOG_EXPORT type FLAGS_##name(value); \ |
| 72 | + char FLAGS_no##name; \ |
| 73 | + } \ |
74 | 74 | using fL##shorttype::FLAGS_##name |
75 | 75 |
|
76 | 76 | // bool specialization |
|
95 | 95 |
|
96 | 96 | // Special case for string, because we have to specify the namespace |
97 | 97 | // std::string, which doesn't play nicely with our FLAG__namespace hackery. |
98 | | -#define DECLARE_string(name) \ |
99 | | - namespace fLS { \ |
100 | | - extern GOOGLE_GLOG_DLL_DECL std::string& FLAGS_##name; \ |
101 | | - } \ |
| 98 | +#define DECLARE_string(name) \ |
| 99 | + namespace fLS { \ |
| 100 | + extern GLOG_EXPORT std::string& FLAGS_##name; \ |
| 101 | + } \ |
102 | 102 | using fLS::FLAGS_##name |
103 | | -#define DEFINE_string(name, value, meaning) \ |
104 | | - namespace fLS { \ |
105 | | - std::string FLAGS_##name##_buf(value); \ |
106 | | - GOOGLE_GLOG_DLL_DECL std::string& FLAGS_##name = FLAGS_##name##_buf; \ |
107 | | - char FLAGS_no##name; \ |
108 | | - } \ |
| 103 | +#define DEFINE_string(name, value, meaning) \ |
| 104 | + namespace fLS { \ |
| 105 | + std::string FLAGS_##name##_buf(value); \ |
| 106 | + GLOG_EXPORT std::string& FLAGS_##name = FLAGS_##name##_buf; \ |
| 107 | + char FLAGS_no##name; \ |
| 108 | + } \ |
109 | 109 | using fLS::FLAGS_##name |
110 | 110 |
|
111 | 111 | #endif // HAVE_LIB_GFLAGS |
|
0 commit comments