aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/py
diff options
context:
space:
mode:
authorGravatar Loo Rong Jie <loorongjie@gmail.com>2018-06-11 02:04:52 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-06-11 02:06:38 -0700
commit4022bac855a790b3a42fcb44c06f62dbbe078c5a (patch)
treec4f4a7b5fb602020c724b23e3ffcca3804e1207f /src/test/py
parent2c89206a407d8cae0945abe7eb179ee6bb77d9de (diff)
Remove usage of COMPILER_MSVC in Bazel and ijar
Convert most `COMPILER_MSVC` to `_WIN32` (as they apply to Windows platform, not MSVC compiler). Only `src/tools/singlejar/zip_headers.h` and `src/main/cpp/util/md5.h` actually need `_MSC_VER`. `COMPILER_MSVC` in `third_party/protobuf` are not removed. They can be fixed by updating dependency to newer version. /cc @meteorcloudy Closes #5350. Change-Id: Ibc131abfaf34a0cb2bd338549983ea9d28eaabfe PiperOrigin-RevId: 200019793
Diffstat (limited to 'src/test/py')
-rw-r--r--src/test/py/bazel/cc_import_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/py/bazel/cc_import_test.py b/src/test/py/bazel/cc_import_test.py
index 1563957495..99ab086a28 100644
--- a/src/test/py/bazel/cc_import_test.py
+++ b/src/test/py/bazel/cc_import_test.py
@@ -79,7 +79,7 @@ class CcImportTest(test_base.TestBase):
self.ScratchFile('lib/a.cc', [
'#include <stdio.h>',
'',
- '#ifdef COMPILER_MSVC',
+ '#ifdef _WIN32',
' #define DLLEXPORT __declspec(dllexport)',
'#else',
' #define DLLEXPORT',