Fix the command line interface unittest again

This time move the macro inside namespaces; hopefully will work with the
integration script.
This commit is contained in:
Jisi Liu 2016-05-10 16:20:08 -07:00
parent a1938b2aa9
commit e8737d8676

View File

@ -65,13 +65,14 @@
#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 protobuf {
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)
#ifndef STDIN_FILENO
#define STDIN_FILENO 0