瀏覽代碼

Fix the command line interface unittest again

This time move the macro inside namespaces; hopefully will work with the
integration script.
Jisi Liu 9 年之前
父節點
當前提交
e8737d8676
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      src/google/protobuf/compiler/command_line_interface_unittest.cc

+ 4 - 3
src/google/protobuf/compiler/command_line_interface_unittest.cc

@@ -65,13 +65,14 @@
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
 
 
 
 
-// Disable the whole test when we use tcmalloc for "draconian" heap checks, in
-// which case tcmalloc will print warnings that fail the plugin tests.
-#if !GOOGLE_PROTOBUF_HEAP_CHECK_DRACONIAN
 namespace google {
 namespace google {
 namespace protobuf {
 namespace protobuf {
 namespace compiler {
 namespace compiler {
 
 
+// Disable the whole test when we use tcmalloc for "draconian" heap checks, in
+// which case tcmalloc will print warnings that fail the plugin tests.
+#if !GOOGLE_PROTOBUF_HEAP_CHECK_DRACONIAN
+
 #if defined(_WIN32)
 #if defined(_WIN32)
 #ifndef STDIN_FILENO
 #ifndef STDIN_FILENO
 #define STDIN_FILENO 0
 #define STDIN_FILENO 0