diff options
author | Loo Rong Jie <loorongjie@gmail.com> | 2017-11-28T05·36+0800 |
---|---|---|
committer | Loo Rong Jie <loorongjie@gmail.com> | 2017-11-28T05·36+0800 |
commit | 79ae60ed9737f6c0ec652eab5492b1359aaea9cf (patch) | |
tree | 95f1895b0824990b7204d37618739c62655fba18 /absl/copts.bzl | |
parent | 79610733f46c888b56d05d7ca981350655c55a5d (diff) |
MSVC fixes
Diffstat (limited to 'absl/copts.bzl')
-rw-r--r-- | absl/copts.bzl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/absl/copts.bzl b/absl/copts.bzl index cc8db2f45108..f687f58ffa24 100644 --- a/absl/copts.bzl +++ b/absl/copts.bzl @@ -103,7 +103,9 @@ MSVC_FLAGS = [ "/wd4244", # conversion from 'type1' to 'type2', possible loss of data "/wd4267", # conversion from 'size_t' to 'type', possible loss of data "/wd4800", # forcing value to bool 'true' or 'false' (performance warning) + "/DNOMINMAX", # Don't define min and max macros (windows.h) "/DWIN32_LEAN_AND_MEAN", # Don't bloat namespace with incompatible winsock versions. + "/D_CRT_SECURE_NO_WARNINGS", # Don't warn about usage of insecure C functions ] MSVC_TEST_FLAGS = [ |